Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
oh wow! thanks for looking into this.
Looking at the history, it seems like an oversight. The patch that introduced packexpansion bit: https://github.com/llvm/llvm-project/commit/44c247f0f009eec70a193335c8a353d6f8602bfd.
it didn't add that field to pchattr serialization code unfortunately. (another example on isimplicit, which adds attr to record https://github.com/llvm/llvm-project/commit/36a5350e51a6dcfae424332aaa266a1e5bfb8c4f)
Could you add tests though ? Something similar to clang/test/PCH/attrs-PR8406.c should be enough.
Yes, please do.
(I would like for us to eventually maintain AST file format compatibility between patch releases, which this change would break, but as far as I'm aware the status quo is still that we include the version number and revision as part of the signature of the AST file and will reject the file if it differs even by clang patch release, so the compatibility there is only a future-facing concern, not one that affects this change.)