mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
e40a275e05
When checking whether we can load a bridging precompiled header (PCH), we end up parsing module maps. If Clang emits a warning or error while parsing the module maps we encounter, the Swift compiler would crash because we have not properly established the invariants of Clang's diagnostic engine. Perform a pairsed set of BeginSourceFile/EndSourceFile calls on the Clang diagnostic consumer to set up the appropriate state. Fixes rdar://problem/57626886.
3 lines
56 B
C
3 lines
56 B
C
@import PrivateWarning;
|
|
@import PrivateWarning.Private;
|