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

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 10:38:40 PDT 2025


https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/154803

Originally suggested by rnk@

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

>From 6d24167141f855658ea7003b4ba91b2148512123 Mon Sep 17 00:00:00 2001
From: Thurston Dang <thurston at google.com>
Date: Thu, 21 Aug 2025 17:33:39 +0000
Subject: [PATCH] [hwasan] Port "[Asan] Skip pre-split coroutine and noop
 coroutine frame (#99415)"

Originally suggested by rnk@
(this is the simplified function-level skip version, to unblock builds ASAP)
---
 llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index fc34d14259d1f..7457565269050 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