Commit 8a0d145
authored
[os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (llvm#158744)
This change fixes the crash in clang's CodeGen by erroring out in Sema
if those arguments are passed.
rdar://1398244231 parent 360fc7b commit 8a0d145
File tree
3 files changed
+45
-5
lines changed- clang
- include/clang/Basic
- lib/Sema
- test/SemaObjC
3 files changed
+45
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10456 | 10456 | | |
10457 | 10457 | | |
10458 | 10458 | | |
| 10459 | + | |
| 10460 | + | |
| 10461 | + | |
10459 | 10462 | | |
10460 | 10463 | | |
10461 | 10464 | | |
| |||
10505 | 10508 | | |
10506 | 10509 | | |
10507 | 10510 | | |
| 10511 | + | |
| 10512 | + | |
10508 | 10513 | | |
10509 | 10514 | | |
10510 | 10515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7673 | 7673 | | |
7674 | 7674 | | |
7675 | 7675 | | |
| 7676 | + | |
| 7677 | + | |
| 7678 | + | |
| 7679 | + | |
| 7680 | + | |
| 7681 | + | |
| 7682 | + | |
| 7683 | + | |
7676 | 7684 | | |
7677 | 7685 | | |
7678 | 7686 | | |
| |||
7705 | 7713 | | |
7706 | 7714 | | |
7707 | 7715 | | |
7708 | | - | |
7709 | | - | |
7710 | | - | |
| 7716 | + | |
| 7717 | + | |
| 7718 | + | |
| 7719 | + | |
| 7720 | + | |
| 7721 | + | |
7711 | 7722 | | |
7712 | | - | |
| 7723 | + | |
7713 | 7724 | | |
7714 | 7725 | | |
7715 | 7726 | | |
| |||
8764 | 8775 | | |
8765 | 8776 | | |
8766 | 8777 | | |
8767 | | - | |
| 8778 | + | |
| 8779 | + | |
| 8780 | + | |
8768 | 8781 | | |
8769 | 8782 | | |
8770 | 8783 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments