Fixing addze.

This commit is contained in:
Ben Vanik 2015-05-12 23:26:21 -07:00
parent 56bd2eee2e
commit 398b37dc5f
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) {
if (use->instr->opcode == &OPCODE_DID_CARRY_info) {
// Replace carry value.
use->instr->Replace(&OPCODE_ASSIGN_info, 0);
use->instr->set_src1(ca);
use->instr->set_src1(builder->LoadZero(INT8_TYPE));
}
}
}