[cfe-commits] patch: serialize Sema::UndefinedInternals in PCH

Nick Lewycky nlewycky at google.com
Fri Jan 25 14:22:35 PST 2013


On 25 January 2013 10:18, Douglas Gregor <dgregor at apple.com> wrote:

>
> On Jan 25, 2013, at 2:32 AM, Nick Lewycky <nlewycky at google.com> wrote:
>
> > This patch fixes a problem where the PCH fails to faithfully represent
> the state of Sema, causing it to drop some -Wundefined-internal diagnostics
> across PCH boundaries.
> >
> > While there I noticed that KnownNamespaces was being emitted in an
> indeterminate order and added code to sort them deterministically.
> >
> > Please review!
>
> (Quoting patches on a phone is awful)
>
> Serialization bits look good.
>
> Rather than sorting based on source location, how about just changing
> Sema's data structures for both of these to MapVectors?
>

Done.

Also, I'd rather not renumber the record codes. It's fine to just append to
> the list, because order is irrelevant.
>

Done.

Updated patch attached. Please review!

Nick


> >
> > <undefined-internal-pch-1.patch>
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/361be632/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undefined-internal-pch-2.patch
Type: application/octet-stream
Size: 12357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/361be632/attachment.obj>


More information about the cfe-commits mailing list