Skip to content

Commit d9f2d5f

Browse files
krasimirggdurin42
authored andcommitted
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 a55c4ec in LLVM.
1 parent d440ce6 commit d9f2d5f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,6 @@ LLVMRustOptimizeWithNewPassManager(
897897
AsanDetectStackUseAfterReturnMode::Runtime,
898898
};
899899
MPM.addPass(ModuleAddressSanitizerPass(opts));
900-
MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(opts)));
901900
#else
902901
MPM.addPass(ModuleAddressSanitizerPass(
903902
/*CompileKernel=*/false, SanitizerOptions->SanitizeAddressRecover));

0 commit comments

Comments
 (0)