diff --git a/src/coreclr/jit/instr.cpp b/src/coreclr/jit/instr.cpp index 476980e9a7dbe1..ce915da97cc2ef 100644 --- a/src/coreclr/jit/instr.cpp +++ b/src/coreclr/jit/instr.cpp @@ -2101,6 +2101,9 @@ instruction CodeGenInterface::ins_Load(var_types srcType, bool aligned /*=false* #if defined(TARGET_WASM) switch (srcType) { + case TYP_REF: + case TYP_BYREF: + return ins_Load(TYP_I_IMPL, aligned); case TYP_INT: return INS_i32_load; case TYP_LONG: @@ -2501,6 +2504,9 @@ instruction CodeGenInterface::ins_Store(var_types dstType, bool aligned /*=false #if defined(TARGET_WASM) switch (dstType) { + case TYP_REF: + case TYP_BYREF: + return ins_Store(TYP_I_IMPL, aligned); case TYP_INT: return INS_i32_store; case TYP_LONG: