Commit a238174
[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 d113e76 commit a238174
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 | |
|---|---|---|---|
| |||
10461 | 10461 | | |
10462 | 10462 | | |
10463 | 10463 | | |
| 10464 | + | |
| 10465 | + | |
| 10466 | + | |
10464 | 10467 | | |
10465 | 10468 | | |
10466 | 10469 | | |
| |||
10509 | 10512 | | |
10510 | 10513 | | |
10511 | 10514 | | |
| 10515 | + | |
| 10516 | + | |
10512 | 10517 | | |
10513 | 10518 | | |
10514 | 10519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7479 | 7479 | | |
7480 | 7480 | | |
7481 | 7481 | | |
| 7482 | + | |
| 7483 | + | |
| 7484 | + | |
| 7485 | + | |
| 7486 | + | |
| 7487 | + | |
| 7488 | + | |
| 7489 | + | |
7482 | 7490 | | |
7483 | 7491 | | |
7484 | 7492 | | |
| |||
7511 | 7519 | | |
7512 | 7520 | | |
7513 | 7521 | | |
7514 | | - | |
7515 | | - | |
7516 | | - | |
| 7522 | + | |
| 7523 | + | |
| 7524 | + | |
| 7525 | + | |
| 7526 | + | |
| 7527 | + | |
7517 | 7528 | | |
7518 | | - | |
| 7529 | + | |
7519 | 7530 | | |
7520 | 7531 | | |
7521 | 7532 | | |
| |||
8570 | 8581 | | |
8571 | 8582 | | |
8572 | 8583 | | |
8573 | | - | |
| 8584 | + | |
| 8585 | + | |
| 8586 | + | |
8574 | 8587 | | |
8575 | 8588 | | |
8576 | 8589 | | |
| |||
| 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