Commit 2301bff
authored
Add some defensive checks against invalid serialization (swiftlang#22466)
If a non-serializable Decl or Type makes it into serialization logic
in a release build, an invalid swiftmodule might be produced silently,
leading to crashes in clients. Try to catch this with an on-in-Release
check that /something/ was serialized. (This is my best guess at how
rdar://problem/47459323 occurred.)1 parent 60da82b commit 2301bff
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
| 2669 | + | |
| 2670 | + | |
2669 | 2671 | | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
2670 | 2679 | | |
2671 | 2680 | | |
2672 | 2681 | | |
| |||
3677 | 3686 | | |
3678 | 3687 | | |
3679 | 3688 | | |
| 3689 | + | |
3680 | 3690 | | |
3681 | 3691 | | |
3682 | 3692 | | |
3683 | 3693 | | |
3684 | 3694 | | |
3685 | 3695 | | |
3686 | | - | |
| 3696 | + | |
| 3697 | + | |
3687 | 3698 | | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
3688 | 3706 | | |
3689 | 3707 | | |
3690 | 3708 | | |
| |||
0 commit comments