[all-commits] [llvm/llvm-project] 5d4c44: [rtsan] Handle attributed IR function declarations...
davidtrevelyan via All-commits
all-commits at lists.llvm.org
Mon Dec 1 12:57:05 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5d4c4411f13755d5f12a83a0d6705e8501f33d5f
https://github.com/llvm/llvm-project/commit/5d4c4411f13755d5f12a83a0d6705e8501f33d5f
Author: davidtrevelyan <davidtrevelyan at users.noreply.github.com>
Date: 2025-12-01 (Mon, 01 Dec 2025)
Changed paths:
M llvm/lib/Transforms/Instrumentation/RealtimeSanitizer.cpp
A llvm/test/Instrumentation/RealtimeSanitizer/rtsan_attrib_declare.ll
Log Message:
-----------
[rtsan] Handle attributed IR function declarations (#169577)
Addresses https://github.com/llvm/llvm-project/issues/169377.
Previously, the RealtimeSanitizer pass only handled attributed function
_definitions_ in IR, and we have recently found that attributed function
_declarations_ caused it to crash. To fix the issue, we must check
whether the IR function is empty before attempting to do any
manipulation of its instructions.
This PR:
- Adds checks for whether IR `Function`s are `empty()` ~~in each
relevant~~ at the top-level RTSan pass routine
- ~~Removes the utility function `rtsanPreservedCFGAnalyses` from the
pass, whose result was unused and which would otherwise have complicated
the fix~~
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list