Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 791aa2911c9decdc19596b50c817d888eb2b7ddd..186fe97ac3821bd6255a4d4f649fd56326ca4460 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->ValueCount(), false, zone()), |
+ used_(sequence->ValueCount(), false, zone()) {} |
void InstructionSelector::SelectInstructions() { |