Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index 4ca54d6a2bb32cb37ad01653fe0a4294559ebf03..66dc709c591b08feb60842643d74a0078f9bfcc0 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -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(); |