mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix a bug when emitting cached diagnostics from nested macros. When building a new source manager for cached diagnostics, there is a bug when creating mapping between FileIDs between two different source managers. If the newly created file in source manager requires another file to be mapped, e.g. when emitting a diagnostic from nested macros, the returning FileID can be updated by the second request before returning. Fix the bug by making sure two different FileIDs are returned in this case. rdar://144810862
32 KiB
32 KiB