diff options
| author | Krasimir Georgiev <krasimir@google.com> | 2021-11-11 09:03:23 -0500 |
|---|---|---|
| committer | Augie Fackler <augie@google.com> | 2021-11-11 09:05:21 -0500 |
| commit | d9f2d5f0e9c55f440d043c3614b164d7c9fa70ce (patch) | |
| tree | 5b60d9c7d79fe440d5346356f313a9c9ba66fedd /compiler/rustc_llvm/llvm-wrapper | |
| parent | d440ce6a9f6d8cfa532007add77754d956038407 (diff) | |
| download | rust-d9f2d5f0e9c55f440d043c3614b164d7c9fa70ce.tar.gz rust-d9f2d5f0e9c55f440d043c3614b164d7c9fa70ce.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index baeb17ed1cb..4f77db8a24d 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -897,7 +897,6 @@ LLVMRustOptimizeWithNewPassManager( AsanDetectStackUseAfterReturnMode::Runtime, }; MPM.addPass(ModuleAddressSanitizerPass(opts)); - MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(opts))); #else MPM.addPass(ModuleAddressSanitizerPass( /*CompileKernel=*/false, SanitizerOptions->SanitizeAddressRecover)); |
