[llvm] [Asan] Skip pre-split coroutine and noop coroutine frame (PR #99415)
Wei Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 15:43:28 PDT 2024
================
@@ -2032,6 +2032,8 @@ bool ModuleAddressSanitizer::shouldInstrumentGlobal(GlobalVariable *G) const {
if (G->isThreadLocal()) return false;
// For now, just ignore this Global if the alignment is large.
if (G->getAlign() && *G->getAlign() > getMinRedzoneSizeForGlobal()) return false;
+ if (G->getName() == "NoopCoro.Frame.Const")
----------------
apolloww wrote:
Thanks for the suggestion. Updated the GV metadata. I'll leave the function metadata unchanged because we still want to instrument post-split coroutine functions, and `isPresplitCoroutine()` can reflect the state.
https://github.com/llvm/llvm-project/pull/99415
More information about the llvm-commits
mailing list