Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index f1710bd561036c290ba54f0c581f0ce876b4dc62..e41133cb0097570a60309abc6aa75e1857161a9c 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1619,8 +1619,7 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) { |
} |
return result; |
} else if (instr->representation().IsExternal()) { |
- DCHECK(instr->left()->representation().IsExternal()); |
- DCHECK(instr->right()->representation().IsInteger32()); |
+ DCHECK(instr->IsConsistentExternalRepresentation()); |
DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
bool use_lea = LAddI::UseLea(instr); |
LOperand* left = UseRegisterAtStart(instr->left()); |