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

Douglas Gregor dgregor at apple.com
Fri Jan 25 10:18:14 PST 2013


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?

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

> 
> <undefined-internal-pch-1.patch>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list