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:
Krasimir Georgiev 2021-11-11 09:03:23 -05:00 committed by Augie Fackler
parent d440ce6a9f
commit d9f2d5f0e9

View File

@ -897,7 +897,6 @@ LLVMRustOptimizeWithNewPassManager(
AsanDetectStackUseAfterReturnMode::Runtime,
};
MPM.addPass(ModuleAddressSanitizerPass(opts));
MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(opts)));
#else
MPM.addPass(ModuleAddressSanitizerPass(
/*CompileKernel=*/false, SanitizerOptions->SanitizeAddressRecover));