[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:03 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;
 
-static PreservedAnalyses runSanitizeRealtime(Function &Fn) {
----------------
cjappl wrote:

Is not returning these preserved analyses going to bite us elsewhere? I remember most of the sanitizer transform passes (or transform passes generally) returning these.

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


More information about the llvm-commits mailing list