Commit ecdc528
authored
[Clang] Fix crash in __builtin_assume_aligned (llvm#114217)
The CodeGen for __builtin_assume_aligned assumes that the first argument
is a pointer, so crashes if the int-conversion error is downgraded or
disabled. Emit a non-downgradable error if the argument is not a
pointer, like we currently do for __builtin_launder.
Fixes llvm#110914.1 parent e020f46 commit ecdc528
File tree
5 files changed
+18
-5
lines changed- clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines
- clang
- include/clang/Basic
- lib/Sema
- test/Sema
5 files changed
+18
-5
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12324 | 12324 | | |
12325 | 12325 | | |
12326 | 12326 | | |
| 12327 | + | |
| 12328 | + | |
12327 | 12329 | | |
12328 | 12330 | | |
12329 | 12331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5341 | 5341 | | |
5342 | 5342 | | |
5343 | 5343 | | |
5344 | | - | |
| 5344 | + | |
| 5345 | + | |
| 5346 | + | |
5345 | 5347 | | |
5346 | | - | |
| 5348 | + | |
5347 | 5349 | | |
5348 | 5350 | | |
5349 | 5351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments