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));