mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
We have seen a couple of crashes that look like they are being caused by `sourcekitd` being unable to load the Swift stdlib. Emit a proper error message explaining the issue instead of crashing. This change assumes that all sourcekitd requests that create an AST require the stdlib. IMHO this is a reasonable assumption. Fixes rdar://75740572 by catching the crash in the new check.
32 KiB
32 KiB