Commit 6240435
committed
[Serialization] Properly skip invalid destructors when allowing errors
7856f2d only partially skipped writing
out destructors when they were invalid, ie. it skipped writing the decl
itself but not the records common to all decls. This would cause any
records on the destructor to be applied on the next serialized decl.
Make sure to skip serializing anything to do with the destructor when
it's invalid and does not have a class context.1 parent e84be85 commit 6240435
File tree
3 files changed
+43
-13
lines changed- lib/Serialization
- test/Serialization/AllowErrors
- validation-test/Serialization/AllowErrors
3 files changed
+43
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3929 | 3929 | | |
3930 | 3930 | | |
3931 | 3931 | | |
3932 | | - | |
3933 | | - | |
3934 | | - | |
3935 | 3932 | | |
3936 | 3933 | | |
3937 | 3934 | | |
| |||
3973 | 3970 | | |
3974 | 3971 | | |
3975 | 3972 | | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
3976 | 3987 | | |
3977 | 3988 | | |
3978 | 3989 | | |
3979 | 3990 | | |
3980 | 3991 | | |
3981 | 3992 | | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
3982 | 4001 | | |
3983 | 4002 | | |
3984 | 4003 | | |
| |||
3988 | 4007 | | |
3989 | 4008 | | |
3990 | 4009 | | |
3991 | | - | |
3992 | | - | |
3993 | 4010 | | |
3994 | 4011 | | |
3995 | 4012 | | |
| |||
| 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 | + | |
Lines changed: 0 additions & 8 deletions
This file was deleted.
0 commit comments