[PCH] Fix a regression when PCH is used with -fmodulesFollowing up on r291465 after a regression in r276159. When we use-fmodule-name=X while building a PCH, modular headers in X will betextually
[PCH] Fix a regression when PCH is used with -fmodulesFollowing up on r291465 after a regression in r276159. When we use-fmodule-name=X while building a PCH, modular headers in X will betextually included and the compiler knows that we are not buildingmodule X, so don't serialize such headers in the PCH as being part of amodule, because at this point they are not.This was causing subtle bugs and malformed AST crashes, for instance,when using the PCH in subsequent compiler invocation with -fmodules, theHFI for a modular header would map to the PCH, which would force amodule load of and unexistent module ID.rdar://problem/30171164llvm-svn: 294361
show more ...