Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index 5e4c09055e46a3ffe0aba26da538d5b1ff843765..7813e9b6b9dfaf69a447f47357895b6a97acbc74 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -137,8 +137,8 @@ class OperandGenerator { |
} |
InstructionOperand* Label(BasicBlock* block) { |
- // TODO(bmeurer): We misuse ImmediateOperand here. |
- return TempImmediate(block->rpo_number()); |
+ int index = sequence()->AddImmediate(Constant(block->GetRpoNumber())); |
+ return ImmediateOperand::Create(index, zone()); |
} |
protected: |