Commit 133a6c9
committed
[Clang] Fix crash with implicit int-to-pointer conversion
If an integer is passed to the pointer argument of the
__atomic_test_and_set or __atomic_clear builtins with the int-conversion
error disabled or downgraded, we crashed in codegen due to assuming that
the type is always a pointer after skip[ping past implicit casts.
Fixes #111293.1 parent 667deb6 commit 133a6c9
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4928 | 4928 | | |
4929 | 4929 | | |
4930 | 4930 | | |
| 4931 | + | |
4931 | 4932 | | |
4932 | | - | |
| 4933 | + | |
4933 | 4934 | | |
4934 | 4935 | | |
4935 | 4936 | | |
| |||
5011 | 5012 | | |
5012 | 5013 | | |
5013 | 5014 | | |
| 5015 | + | |
5014 | 5016 | | |
5015 | | - | |
| 5017 | + | |
5016 | 5018 | | |
5017 | 5019 | | |
5018 | 5020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| 319 | + | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
| |||
0 commit comments