diff options
| author | Justus Klausecker <justus@klausecker.de> | 2025-08-08 15:16:34 +0200 |
|---|---|---|
| committer | Justus Klausecker <justus@klausecker.de> | 2025-08-12 16:33:58 +0200 |
| commit | 79756e681d50d85576c890e4dd5c967f10d2e8ec (patch) | |
| tree | 5fd93821ffca230ffe817b69eb0e0163446b313b /src/Sema.zig | |
| parent | 76d2782149bef0214526a36a888c00adc5f2f897 (diff) | |
| download | zig-79756e681d50d85576c890e4dd5c967f10d2e8ec.tar.gz zig-79756e681d50d85576c890e4dd5c967f10d2e8ec.zip | |
remove redundant test cases
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 3c2c230de2..00644f6263 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -14859,7 +14859,7 @@ fn zirDiv(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Ins try sema.addDivByZeroSafety(block, src, resolved_type, maybe_rhs_val, casted_rhs, is_int); } - const air_tag = if (is_int) blk: { + const air_tag: Air.Inst.Tag = if (is_int) blk: { if (lhs_ty.isSignedInt(zcu) or rhs_ty.isSignedInt(zcu)) { return sema.fail( block, @@ -14868,10 +14868,10 @@ fn zirDiv(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Ins .{ lhs_ty.fmt(pt), rhs_ty.fmt(pt) }, ); } - break :blk Air.Inst.Tag.div_trunc; + break :blk .div_trunc; } else switch (block.float_mode) { - .optimized => Air.Inst.Tag.div_float_optimized, - .strict => Air.Inst.Tag.div_float, + .optimized => .div_float_optimized, + .strict => .div_float, }; return block.addBinOp(air_tag, casted_lhs, casted_rhs); } |
