Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 1b1de3484e42caed8e8b2a8c41befe3fdb439b49..78c7b9c8d60836ea51e2d591efd676fd7da5c202 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1612,9 +1612,8 @@ LInstruction* LChunkBuilder::DoCompareNumericAndBranch( |
HCompareNumericAndBranch* instr) { |
Representation r = instr->representation(); |
if (r.IsSmiOrInteger32()) { |
- ASSERT(instr->left()->representation().IsSmiOrInteger32()); |
- ASSERT(instr->left()->representation().Equals( |
- instr->right()->representation())); |
+ ASSERT(instr->left()->representation().Equals(r)); |
+ ASSERT(instr->right()->representation().Equals(r)); |
LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
LOperand* right = UseOrConstantAtStart(instr->right()); |
return new(zone()) LCompareNumericAndBranch(left, right); |