[llvm] [rtsan] Handle attributed IR function declarations (PR #169577)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 17:47:04 PST 2025


================
@@ -61,23 +61,21 @@ static void insertCallAtAllFunctionExitPoints(Function &Fn,
       insertCallBeforeInstruction(Fn, I, InsertFnName, FunctionArgs);
 }
 
-static PreservedAnalyses rtsanPreservedCFGAnalyses() {
-  PreservedAnalyses PA;
-  PA.preserveSet<CFGAnalyses>();
-  return PA;
-}
+static void runSanitizeRealtime(Function &Fn) {
+  if (Fn.empty())
+    return;
----------------
cjappl wrote:

Is there precedence in other sanitizer passes for doing this? (Curious how they solved this problem)

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


More information about the llvm-commits mailing list