This is an archive of the discontinued LLVM Phabricator instance.

[Serialization] Fix crash writing non-module PCH in non-module mode including modular headers
Needs ReviewPublic

Authored by sammccall on Nov 17 2022, 3:13 AM.

Details

Reviewers
kadircet
Summary

Ran into this when trying to turn off modules mode in clangd.

Took me a long time to (mostly) work out the logic behind this function
so documented my understanding, hopefully it's correct!

Diff Detail

Event Timeline

sammccall created this revision.Nov 17 2022, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 3:13 AM
sammccall requested review of this revision.Nov 17 2022, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 3:13 AM
nridge added a subscriber: nridge.Nov 19 2022, 5:04 PM