MIPS64: Fix bogus assert in AddI.
TEST= BUG= Review URL: https://codereview.chromium.org/1170173002 Cr-Commit-Position: refs/heads/master@{#28861}
This commit is contained in:
parent
319667bfbd
commit
6ca5ffa078
@ -1907,7 +1907,7 @@ void LCodeGen::DoAddI(LAddI* instr) {
|
||||
bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow);
|
||||
|
||||
if (!can_overflow) {
|
||||
DCHECK(right->IsRegister());
|
||||
DCHECK(right->IsRegister() || right->IsConstantOperand());
|
||||
__ Daddu(ToRegister(result), ToRegister(left), ToOperand(right));
|
||||
} else { // can_overflow.
|
||||
Register overflow = scratch0();
|
||||
|
Loading…
Reference in New Issue
Block a user