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:
dusan.milosavljevic 2015-06-09 04:53:57 -07:00 committed by Commit bot
parent 319667bfbd
commit 6ca5ffa078

View File

@ -1907,7 +1907,7 @@ void LCodeGen::DoAddI(LAddI* instr) {
bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow);
if (!can_overflow) { if (!can_overflow) {
DCHECK(right->IsRegister()); DCHECK(right->IsRegister() || right->IsConstantOperand());
__ Daddu(ToRegister(result), ToRegister(left), ToOperand(right)); __ Daddu(ToRegister(result), ToRegister(left), ToOperand(right));
} else { // can_overflow. } else { // can_overflow.
Register overflow = scratch0(); Register overflow = scratch0();