| Index: src/compiler/instruction.h | 
| diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h | 
| index 304b1b8a5a980078030af27a164d613f70e5a4d9..1c454d81ec083df24243075043317ececfc2617d 100644 | 
| --- a/src/compiler/instruction.h | 
| +++ b/src/compiler/instruction.h | 
| @@ -1331,7 +1331,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()); | 
|  |