Skip to content

Commit 9ed07a7

Browse files
One more ASAN fix
We must use use_global_gc = false to work properly with the JIT
1 parent 51491a5 commit 9ed07a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeGen_LLVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ void CodeGen_LLVM::optimize_module() {
11501150
#if LLVM_VERSION >= 140
11511151
AddressSanitizerOptions asan_options; // default values are good...
11521152
asan_options.UseAfterScope = true; // ...except this one
1153-
constexpr bool use_global_gc = true;
1153+
constexpr bool use_global_gc = false;
11541154
constexpr bool use_odr_indicator = true;
11551155
constexpr auto destructor_kind = AsanDtorKind::Global;
11561156
mpm.addPass(ModuleAddressSanitizerPass(

0 commit comments

Comments
 (0)