| Index: src/compiler/arm/code-generator-arm.cc
|
| diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc
|
| index 5c94ccf7c3b2d07bb6ce1b379cf99d14135080db..a49f5344ed2327c9feaeeac1191012792deef982 100644
|
| --- a/src/compiler/arm/code-generator-arm.cc
|
| +++ b/src/compiler/arm/code-generator-arm.cc
|
| @@ -1297,7 +1297,11 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
|
| switch (src.type()) {
|
| case Constant::kInt32:
|
| - __ mov(dst, Operand(src.ToInt32()));
|
| + if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| + __ mov(dst, Operand(src.ToInt32(), src.rmode()));
|
| + } else {
|
| + __ mov(dst, Operand(src.ToInt32()));
|
| + }
|
| break;
|
| case Constant::kInt64:
|
| UNREACHABLE();
|
|
|