Index: src/compiler/code-generator-impl.h |
diff --git a/src/compiler/code-generator-impl.h b/src/compiler/code-generator-impl.h |
index a3f7e4c11d5e6972a2ac6cb3c42cd1b153c20b5d..cdab800856198facb9d888b045b618497d90a179 100644 |
--- a/src/compiler/code-generator-impl.h |
+++ b/src/compiler/code-generator-impl.h |
@@ -65,7 +65,7 @@ class InstructionOperandConverter { |
} |
BasicBlock* InputBlock(int index) { |
- NodeId block_id = static_cast<NodeId>(InputInt32(index)); |
+ NodeId block_id = static_cast<NodeId>(instr_->InputAt(index)->index()); |
// operand should be a block id. |
DCHECK(block_id >= 0); |
DCHECK(block_id < gen_->schedule()->BasicBlockCount()); |