[mono] Fix HOST_WASM -> TARGET_WASM in llvm code. (#50269)
authorZoltan Varga <vargaz@gmail.com>
Fri, 26 Mar 2021 05:31:09 +0000 (01:31 -0400)
committerGitHub <noreply@github.com>
Fri, 26 Mar 2021 05:31:09 +0000 (01:31 -0400)
src/mono/mono/mini/mini-llvm.c

index c4f8ae8..5e7bb2b 100644 (file)
@@ -1462,7 +1462,7 @@ emit_volatile_store (EmitContext *ctx, int vreg)
 
        if (var && var->flags & (MONO_INST_VOLATILE|MONO_INST_INDIRECT)) {
                g_assert (ctx->addresses [vreg]);
-#ifdef HOST_WASM
+#ifdef TARGET_WASM
                /* Need volatile stores otherwise the compiler might move them */
                mono_llvm_build_store (ctx->builder, convert (ctx, ctx->values [vreg], type_to_llvm_type (ctx, var->inst_vtype)), ctx->addresses [vreg], TRUE, LLVM_BARRIER_NONE);
 #else