Index: src/compiler/instruction.h |
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h |
index 9197e39eee383b5e345391af641f20b7b89a4d3e..159802b40a14e04a07cb51f69161c68927f2d962 100644 |
--- a/src/compiler/instruction.h |
+++ b/src/compiler/instruction.h |
@@ -1334,7 +1334,8 @@ class InstructionSequence final : public ZoneObject { |
Immediates& immediates() { return immediates_; } |
ImmediateOperand AddImmediate(const Constant& constant) { |
- if (constant.type() == Constant::kInt32) { |
+ if (constant.type() == Constant::kInt32 && |
+ RelocInfo::IsNone(constant.rmode())) { |
return ImmediateOperand(ImmediateOperand::INLINE, constant.ToInt32()); |
} |
int index = static_cast<int>(immediates_.size()); |