From 6ca5ffa0786ae0e811f18dbad0752faffab496fc Mon Sep 17 00:00:00 2001 From: "dusan.milosavljevic" Date: Tue, 9 Jun 2015 04:53:57 -0700 Subject: [PATCH] MIPS64: Fix bogus assert in AddI. TEST= BUG= Review URL: https://codereview.chromium.org/1170173002 Cr-Commit-Position: refs/heads/master@{#28861} --- src/mips64/lithium-codegen-mips64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc index 4ca54d6a2b..66dc709c59 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();