Commit 251a2e7
committed
[NFC][BoundsSafety] Fix UBSan test cases added for swiftlang#11645
In swiftlang#11645 test cases combining `-fbounds-safety` trap mode with UBSan in
trapping mode. The generated IR includes a global string array that
contains an absolute file path. The test case was previously manually
patched so that any path would match to make the test case portable.
However, the length of the constant array was not changed which still
meant the test wasn't portable. This fixes that by allowing any length
for the global arrays
rdar://1580887571 parent 700f71b commit 251a2e7
File tree
2 files changed
+6
-6
lines changed- clang/test/BoundsSafety/CodeGen/soft-traps
2 files changed
+6
-6
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments