Index: src/compiler/instruction.cc |
diff --git a/src/compiler/instruction.cc b/src/compiler/instruction.cc |
index 76a695052eabb7aa5b4493c4c6f8ddd22583ed71..ad7a5ee05c6bcf9a7324995841e1bc0f53f7330a 100644 |
--- a/src/compiler/instruction.cc |
+++ b/src/compiler/instruction.cc |
@@ -346,7 +346,7 @@ static BasicBlock::RpoNumber GetRpo(BasicBlock* block) { |
static BasicBlock::RpoNumber GetLoopEndRpo(const BasicBlock* block) { |
if (!block->IsLoopHeader()) return BasicBlock::RpoNumber::Invalid(); |
- return BasicBlock::RpoNumber::FromInt(block->loop_end()); |
+ return block->loop_end()->GetRpoNumber(); |
} |