mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
fix mul and sub overflow ops being rendered as addition
This commit is contained in:
1 parent
349cd79fe4
commit
9d94c2ccd0
1 file changed
+2
-2
+2
-2
@@ -1983,10 +1983,10 @@ static LLVMValueRef ir_render_overflow_op(CodeGen *g, IrExecutable *executable,
|
||||
add_sub_mul = AddSubMulAdd;
|
||||
break;
|
||||
case IrOverflowOpSub:
|
||||
add_sub_mul = AddSubMulAdd;
|
||||
add_sub_mul = AddSubMulSub;
|
||||
break;
|
||||
case IrOverflowOpMul:
|
||||
add_sub_mul = AddSubMulAdd;
|
||||
add_sub_mul = AddSubMulMul;
|
||||
break;
|
||||
case IrOverflowOpShl:
|
||||
return render_shl_with_overflow(g, instruction);
|
||||
|
||||
Reference in new issue
Block a user