Commit a26095f
[BoundsSafety][LLDB] Try to Fix
The tests were failing with:
```
/home/build-user/llvm-project/lldb/test/Shell/BoundsSafety/Inputs/boundsSafetySoftTrapsMissingReason.c:5:32: error: a parameter list without types is only allowed in a function definition
5 | int bad_call(int *__counted_by(count) ptr, int count) {}
| ^
/home/build-user/llvm-project/lldb/test/Shell/BoundsSafety/Inputs/boundsSafetySoftTrapsMissingReason.c:5:39: error: expected ')'
5 | int bad_call(int *__counted_by(count) ptr, int count) {}
| ^
/home/build-user/llvm-project/lldb/test/Shell/BoundsSafety/Inputs/boundsSafetySoftTrapsMissingReason.c:5:13: note: to match this '('
5 | int bad_call(int *__counted_by(count) ptr, int count) {}
| ^
2 errors generated.
```
This is happening because `__counted_by` is a macro but the `ptrcheck.h`
header that defines it is not included. This wasn't caught on macOS
because the Libc headers on that platform automatically include that
header.
I don't have a Linux VM to hand so this is a speculative fix that should
fix the include issue.
rdar://165202129bounds_safety_soft_trap*_missing_reason tests on Linux1 parent 13cab7c commit a26095f
File tree
3 files changed
+3
-2
lines changed- lldb/test/Shell/BoundsSafety
- Inputs
3 files changed
+3
-2
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments