Files
swift-mirror/lib/Frontend/CachedDiagnostics.cpp
Steven Wu 0613fca744 [Caching] Fix a bug when emitting diagnostics from nested macros
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
2025-02-13 13:46:50 -08:00

32 KiB