Skip to content

Commit

Permalink
Clean up CodeGen_LLVM names to match ASAN nomenclature changes (#6395)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Nov 8, 2021
1 parent 6071cf6 commit 1312817
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CodeGen_LLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,9 +1166,9 @@ void CodeGen_LLVM::optimize_module() {
#else
constexpr bool compile_kernel = false;
constexpr bool recover = false;
constexpr bool use_after_scope = true;
constexpr bool use_global_gc = true;
mpm.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(
compile_kernel, recover, use_after_scope)));
compile_kernel, recover, use_global_gc)));
#endif
});
#if LLVM_VERSION >= 140
Expand All @@ -1187,21 +1187,21 @@ void CodeGen_LLVM::optimize_module() {
[](ModulePassManager &mpm, OptimizationLevel) {
constexpr bool compile_kernel = false;
constexpr bool recover = false;
constexpr bool module_use_after_scope = false;
constexpr bool module_use_global_gc = false;
constexpr bool use_odr_indicator = true;
mpm.addPass(ModuleAddressSanitizerPass(
compile_kernel, recover, module_use_after_scope,
compile_kernel, recover, module_use_global_gc,
use_odr_indicator));
});
#else
pb.registerPipelineStartEPCallback(
[](ModulePassManager &mpm) {
constexpr bool compile_kernel = false;
constexpr bool recover = false;
constexpr bool module_use_after_scope = false;
constexpr bool module_use_global_gc = false;
constexpr bool use_odr_indicator = true;
mpm.addPass(ModuleAddressSanitizerPass(
compile_kernel, recover, module_use_after_scope,
compile_kernel, recover, module_use_global_gc,
use_odr_indicator));
});
#endif
Expand Down

0 comments on commit 1312817

Please sign in to comment.