From 8f6dd6448327881ce8f6f8839fb0bfb4a0cd142a Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Mon, 20 Dec 2021 02:35:01 +0100 Subject: [PATCH] Update assert for WASM part 2 --- src/compiler/llvm_codegen_stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/llvm_codegen_stmt.c b/src/compiler/llvm_codegen_stmt.c index d5fc2b860..17b28a5a2 100644 --- a/src/compiler/llvm_codegen_stmt.c +++ b/src/compiler/llvm_codegen_stmt.c @@ -1100,7 +1100,7 @@ void llvm_emit_debug_output(GenContext *c, const char *message, const char *file int expr_index; int func_index = -1; OsType os = platform_target.os; - if (platform_target.arch == WASM32 || platform_target.arch == WASM64) os = OS_TYPE_WASI; + if (platform_target.arch == ARCH_TYPE_WASM32 || platform_target.arch == ARCH_TYPE_WASM64) os = OS_TYPE_WASI; switch (os) { case OS_TYPE_WIN32: