Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 428570a8c831878a053c2b445b5617071208af07..bdbbdab64b20844bbba67fbb7e5fe7415cd762f9 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -66,9 +66,7 @@ class IA32OperandConverter : public InstructionOperandConverter { |
Immediate ToImmediate(InstructionOperand* operand) { |
Constant constant = ToConstant(operand); |
if (constant.type() == Constant::kInt32 && |
- (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
- constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE || |
- constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE)) { |
+ RelocInfo::IsWasmReference(constant.rmode())) { |
return Immediate(reinterpret_cast<Address>(constant.ToInt32()), |
constant.rmode()); |
} |