Commit 41b83b4
authored
No longer assert on incorrect attribute argument index (#133766)
Fixes an assertion when referencing an out-of-bounds parameter via a
function attribute whose argument list refers to parameters by index and
the function is variadic. e.g.,
__attribute__ ((__format_arg__(2))) void test (int i, ...) { }
Fixes #616351 parent 290d7b8 commit 41b83b4
File tree
4 files changed
+32
-10
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test/Sema
4 files changed
+32
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4796 | 4796 | | |
4797 | 4797 | | |
4798 | 4798 | | |
4799 | | - | |
4800 | | - | |
4801 | | - | |
4802 | | - | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
4803 | 4803 | | |
4804 | 4804 | | |
4805 | 4805 | | |
| |||
4820 | 4820 | | |
4821 | 4821 | | |
4822 | 4822 | | |
4823 | | - | |
| 4823 | + | |
| 4824 | + | |
4824 | 4825 | | |
4825 | 4826 | | |
4826 | 4827 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1319 | 1322 | | |
1320 | 1323 | | |
1321 | 1324 | | |
| |||
5756 | 5759 | | |
5757 | 5760 | | |
5758 | 5761 | | |
5759 | | - | |
5760 | | - | |
| 5762 | + | |
| 5763 | + | |
| 5764 | + | |
| 5765 | + | |
5761 | 5766 | | |
5762 | 5767 | | |
5763 | 5768 | | |
5764 | | - | |
5765 | | - | |
| 5769 | + | |
| 5770 | + | |
| 5771 | + | |
| 5772 | + | |
5766 | 5773 | | |
5767 | 5774 | | |
5768 | 5775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments