stage2 Sema: enable float multiplication and division

This commit is contained in:
joachimschmidt557 2021-06-13 16:46:10 +08:00 committed by Veikka Tuominen
parent 6664679c8c
commit 46b9e061e0

View File

@ -5402,7 +5402,7 @@ fn analyzeRet(
fn floatOpAllowed(tag: Zir.Inst.Tag) bool { fn floatOpAllowed(tag: Zir.Inst.Tag) bool {
// extend this swich as additional operators are implemented // extend this swich as additional operators are implemented
return switch (tag) { return switch (tag) {
.add, .sub => true, .add, .sub, .mul, .div => true,
else => false, else => false,
}; };
} }