[llvm] de64f85 - [hwasan] Port "[Asan] Skip pre-split coroutine and noop coroutine frame (#99415)" (#154803)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 11:20:38 PDT 2025


Author: Thurston Dang
Date: 2025-08-21T11:20:35-07:00
New Revision: de64f85f5d224c3304f377dd6e202c9d5415fce1

URL: https://github.com/llvm/llvm-project/commit/de64f85f5d224c3304f377dd6e202c9d5415fce1
DIFF: https://github.com/llvm/llvm-project/commit/de64f85f5d224c3304f377dd6e202c9d5415fce1.diff

LOG: [hwasan] Port "[Asan] Skip pre-split coroutine and noop coroutine frame (#99415)" (#154803)

Originally suggested by rnk@

(this is the simplified function-level skip version, to unblock builds
ASAP)

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index fc34d14259d1f..66cdbfcf998c6 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -1574,6 +1574,9 @@ void HWAddressSanitizer::sanitizeFunction(Function &F,
   if (F.empty())
     return;
 
+  if (F.isPresplitCoroutine())
+    return;
+
   NumTotalFuncs++;
 
   OptimizationRemarkEmitter &ORE =


        


More information about the llvm-commits mailing list