Commit 99ea897
committed
[ubsan] Remove -ubsan-unique-traps (replace with -fno-sanitize-merge)
-fno-sanitize-merge (introduced in #120511) duplicates the functionality of -ubsan-unique-traps but also allows individual checks to be specified e.g.,
* "-fno-sanitize-merge" without arguments is equivalent to -ubsan-unique-traps
* "-fno-sanitize-merge=bool,enum" will apply it only to those two checks
This patch also adds negative test examples to bounds-checking.c, and
strengthens the NOOPTARRAY assertion to prevent spurious matches.
Note: this change necessarily breaks compatibility with '-mllvm
-ubsan-unique-traps'. We hope that this is acceptable since '-mllvm
-ubsan-unique-traps' was an experimental flag.
"-bounds-checking-unique-traps" is unaffected by this patch.1 parent ffff7bb commit 99ea897
File tree
3 files changed
+19
-16
lines changed- clang
- lib/CodeGen
- test/CodeGen
3 files changed
+19
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
| |||
3581 | 3576 | | |
3582 | 3577 | | |
3583 | 3578 | | |
3584 | | - | |
| 3579 | + | |
3585 | 3580 | | |
3586 | 3581 | | |
3587 | 3582 | | |
| |||
3915 | 3910 | | |
3916 | 3911 | | |
3917 | 3912 | | |
3918 | | - | |
| 3913 | + | |
3919 | 3914 | | |
3920 | 3915 | | |
3921 | 3916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | | - | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
| |||
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
0 commit comments