Index: src/hydrogen-range-analysis.cc |
diff --git a/src/hydrogen-range-analysis.cc b/src/hydrogen-range-analysis.cc |
index 0d4d9700de0bb56bc3796f8b6cec4cd0644ce7f9..ed254db19c433f3588a08dd442096ec3e4fa45d5 100644 |
--- a/src/hydrogen-range-analysis.cc |
+++ b/src/hydrogen-range-analysis.cc |
@@ -49,8 +49,9 @@ void HRangeAnalysisPhase::Analyze(HBasicBlock* block) { |
// Infer range based on control flow. |
if (block->predecessors()->length() == 1) { |
HBasicBlock* pred = block->predecessors()->first(); |
- if (pred->end()->IsCompareIDAndBranch()) { |
- InferControlFlowRange(HCompareIDAndBranch::cast(pred->end()), block); |
+ if (pred->end()->IsCompareNumericAndBranch()) { |
+ InferControlFlowRange(HCompareNumericAndBranch::cast(pred->end()), |
+ block); |
} |
} |
@@ -74,7 +75,7 @@ void HRangeAnalysisPhase::Analyze(HBasicBlock* block) { |
} |
-void HRangeAnalysisPhase::InferControlFlowRange(HCompareIDAndBranch* test, |
+void HRangeAnalysisPhase::InferControlFlowRange(HCompareNumericAndBranch* test, |
HBasicBlock* dest) { |
ASSERT((test->FirstSuccessor() == dest) == (test->SecondSuccessor() != dest)); |
if (test->representation().IsSmiOrInteger32()) { |