[PATCH] D113529: [asan] Minimal fix for PR52382
Vitaly Buka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 9 17:08:35 PST 2021
vitalybuka created this revision.
Herald added a subscriber: ormris.
vitalybuka requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Alternative to a55c4ec1cee7683d9095327d9d33e7137ec25292 <https://reviews.llvm.org/rGa55c4ec1cee7683d9095327d9d33e7137ec25292>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113529
Files:
clang/lib/CodeGen/BackendUtil.cpp
Index: clang/lib/CodeGen/BackendUtil.cpp
===================================================================
--- clang/lib/CodeGen/BackendUtil.cpp
+++ clang/lib/CodeGen/BackendUtil.cpp
@@ -1156,11 +1156,11 @@
llvm::AsanDetectStackUseAfterReturnMode UseAfterReturn =
CodeGenOpts.getSanitizeAddressUseAfterReturn();
MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
+ MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(
+ CompileKernel, Recover, UseAfterScope, UseAfterReturn)));
MPM.addPass(ModuleAddressSanitizerPass(
CompileKernel, Recover, ModuleUseAfterScope, UseOdrIndicator,
DestructorKind));
- MPM.addPass(createModuleToFunctionPassAdaptor(AddressSanitizerPass(
- CompileKernel, Recover, UseAfterScope, UseAfterReturn)));
}
};
ASanPass(SanitizerKind::Address, false);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113529.386019.patch
Type: text/x-patch
Size: 932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211110/a1880814/attachment.bin>
More information about the cfe-commits
mailing list