mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
There are a bunch of places where we expect to find a record with a particular record ID/kind in the decls_block and have to bail out if we see something we don’t expect. Add an `InvalidRecordKindError` we can use in this situation to produce a useful error message and adopt it in various places. This change also makes deserialization errors print the path to the invalid file.
54 KiB
54 KiB