Commit 3be2022
committed
[BoundsSafety] Fix tests broken by change to how debug info in macros is handled
llvm#11723 change changed how debug info for macros were handled.
```
commit 651cb8a
Author: SKill <[email protected]>
Date: Thu Oct 30 14:39:15 2025 +0100
[clang] Use File Location for debug info resolution. (llvm#163982)
To improve debuggability, the macro arguments should be resolved to
their original location rather than macro expansion location.
```
This broke a bunch of the BoundsSafety tests because they were testing
the debug info used by some macros. In particular
* The `opt-remarks` test use debug info and the location of the `<count>`
in `__counted_by(<count>)` changed to point at the macro argument
instead the beginning of the macro
* The `trap-reasons` tests explicitly tested the debug location of
access that happened through a macro. The debug location previously
pointed at the beginning of the `ARRAY` macro and now it points at the
`array` argument to the macro.
rdar://163727761&163727775&163727819&163727893&1637279031 parent fcedb94 commit 3be2022
File tree
5 files changed
+7
-7
lines changed- clang/test/BoundsSafety/CodeGen
- opt-remarks
- trap-reasons
5 files changed
+7
-7
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
0 commit comments