Commit 46b9e061e0

joachimschmidt557 <joachim.schmidt557@outlook.com>
2021-06-13 10:46:10
stage2 Sema: enable float multiplication and division
1 parent 6664679
Changed files (1)
src/Sema.zig
@@ -5402,7 +5402,7 @@ fn analyzeRet(
 fn floatOpAllowed(tag: Zir.Inst.Tag) bool {
     // extend this swich as additional operators are implemented
     return switch (tag) {
-        .add, .sub => true,
+        .add, .sub, .mul, .div => true,
         else => false,
     };
 }