diff options
| author | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2021-06-13 16:46:10 +0800 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-06-13 15:24:28 +0300 |
| commit | 46b9e061e07700ad1372ed2e9d2af9a29f24d76c (patch) | |
| tree | 02e3a37237162fe71af4c718540bf23be4ad2821 /src/Sema.zig | |
| parent | 6664679c8c1d24e929630daf8392ca09620d4a94 (diff) | |
| download | zig-46b9e061e07700ad1372ed2e9d2af9a29f24d76c.tar.gz zig-46b9e061e07700ad1372ed2e9d2af9a29f24d76c.zip | |
stage2 Sema: enable float multiplication and division
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 9814b68f3e..c9a150202e 100644 --- a/src/Sema.zig +++ b/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, }; } |
