[llvm] [Asan] Skip pre-split coroutine and noop coroutine frame (PR #99415)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 15:12:30 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")
----------------
vitalybuka wrote:

Seems attaching attach metadata on the global is nicer solution? 
See line 2020

https://github.com/llvm/llvm-project/pull/99415


More information about the llvm-commits mailing list