Skip to content

Commit

Permalink
PassWrapper: additional sanitizer update to match clang
Browse files Browse the repository at this point in the history
This happened later in the stream than the other changes, but the fix is
overlapping. Fix taken from a55c4ec in
LLVM.
  • Loading branch information
krasimirgg authored and durin42 committed Nov 11, 2021
1 parent d440ce6 commit d9f2d5f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,6 @@ LLVMRustOptimizeWithNewPassManager(
AsanDetectStackUseAfterReturnMode::Runtime,
};
MPM.addPass(ModuleAddressSanitizerPass(opts));
MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(opts)));
#else
MPM.addPass(ModuleAddressSanitizerPass(
/*CompileKernel=*/false, SanitizerOptions->SanitizeAddressRecover));
Expand Down

0 comments on commit d9f2d5f

Please sign in to comment.