Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 791aa2911c9decdc19596b50c817d888eb2b7ddd..72a7ed27399e7e3ddc57390376b629c7564ec984 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -22,8 +22,8 @@ InstructionSelector::InstructionSelector(InstructionSequence* sequence, |
features_(features), |
current_block_(NULL), |
instructions_(zone()), |
- defined_(graph()->NodeCount(), false, zone()), |
- used_(graph()->NodeCount(), false, zone()) {} |
+ defined_(sequence->node_count(), false, zone()), |
+ used_(sequence->node_count(), false, zone()) {} |
void InstructionSelector::SelectInstructions() { |