Commit 0ca2359
committed
[rtsan] Handle attributed IR function declarations
Addresses #169377.
Previously, the RealtimeSanitizer pass only handled attributed function
definitions in IR, and 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.1 parent 8079d03 commit 0ca2359
File tree
2 files changed
+14
-0
lines changed- llvm
- lib/Transforms/Instrumentation
- test/Instrumentation/RealtimeSanitizer
2 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments