Skip to content

Commit 16c51a6

Browse files
committed
fix: fix atomic wait return code comparison
1 parent 13788c3 commit 16c51a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/compilation/aot_emit_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ aot_compile_op_atomic_wait(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
13531353
}
13541354
#endif
13551355

1356-
BUILD_ICMP(LLVMIntSGT, ret_value, I32_ZERO, cmp, "atomic_wait_ret");
1356+
BUILD_ICMP(LLVMIntNE, ret_value, I32_NEG_ONE, cmp, "atomic_wait_ret");
13571357

13581358
ADD_BASIC_BLOCK(wait_fail, "atomic_wait_fail");
13591359
ADD_BASIC_BLOCK(wait_success, "wait_success");

0 commit comments

Comments
 (0)