mirror of
https://github.com/ziglang/zig.git
synced 2026-02-11 12:01:18 +00:00
fix mul and sub overflow ops being rendered as addition
This commit is contained in:
parent
349cd79fe4
commit
9d94c2ccd0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user