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

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 10:39:20 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Thurston Dang (thurstond)

<details>
<summary>Changes</summary>

Originally suggested by rnk@

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

---
Full diff: https://github.com/llvm/llvm-project/pull/154803.diff


1 Files Affected:

- (modified) llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp (+3) 


``````````diff
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 =

``````````

</details>


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


More information about the llvm-commits mailing list