mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 12:36:47 +00:00
PassWrapper: additional sanitizer update to match clang
This happened later in the stream than the other changes, but the fix is overlapping. Fix taken from a55c4ec1cee7683d9095327d9d33e7137ec25292 in LLVM.
This commit is contained in:
parent
d440ce6a9f
commit
d9f2d5f0e9
@ -897,7 +897,6 @@ LLVMRustOptimizeWithNewPassManager(
|
||||
AsanDetectStackUseAfterReturnMode::Runtime,
|
||||
};
|
||||
MPM.addPass(ModuleAddressSanitizerPass(opts));
|
||||
MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(opts)));
|
||||
#else
|
||||
MPM.addPass(ModuleAddressSanitizerPass(
|
||||
/*CompileKernel=*/false, SanitizerOptions->SanitizeAddressRecover));
|
||||
|
Loading…
Reference in New Issue
Block a user