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..318b7e96abb3d8362f227eecf0af92be02405f79 100644 |
--- a/src/compiler/code-generator-impl.h |
+++ b/src/compiler/code-generator-impl.h |
@@ -65,11 +65,8 @@ class InstructionOperandConverter { |
} |
BasicBlock* InputBlock(int index) { |
- NodeId block_id = static_cast<NodeId>(InputInt32(index)); |
- // operand should be a block id. |
- DCHECK(block_id >= 0); |
- DCHECK(block_id < gen_->schedule()->BasicBlockCount()); |
- return gen_->schedule()->GetBlockById(block_id); |
+ int block_id = InputInt32(index); |
+ return gen_->schedule()->GetBlockById(BasicBlock::Id::FromInt(block_id)); |
} |
Register OutputRegister(int index = 0) { |