Skip to content

Commit 158dcef

Browse files
committed
[clang/CachedDiagnostics] Fix issues with how scratch buffers are handled
* Use the same memory buffer of the scratch buffer for round-tripping, instead of copying it and creating multiple FileIDs for the same buffer. * Make sure the round-tripped scratch buffer uses updated line table. * Using a `MemoryBuffer` for source buffers also ensures null termination. rdar://106090263 (cherry picked from commit 000a48f)
1 parent 3a544b6 commit 158dcef

File tree

2 files changed

+322
-71
lines changed

2 files changed

+322
-71
lines changed

0 commit comments

Comments
 (0)