Skip to content

Commit a11d000

Browse files
committed
fix wrong displacement for #endif
1 parent 719a284 commit a11d000

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/iwasm/compilation/aot_emit_memory.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ aot_check_memory_overflow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
147147
if (IS_MEMORY64) {
148148
wasm_value.i64 = offset;
149149
}
150-
else {
150+
else
151+
#endif
152+
{
151153
wasm_value.i32 = (int32)offset;
152154
}
153155
offset_const = aot_load_const_from_table(
@@ -157,9 +159,7 @@ aot_check_memory_overflow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
157159
return NULL;
158160
}
159161
}
160-
else
161-
#endif
162-
{
162+
else {
163163
CHECK_LLVM_CONST(offset_const);
164164
}
165165

0 commit comments

Comments
 (0)