summaryrefslogtreecommitdiffstats
path: root/test/Modules/invalid-pch-module-id.m
Commit message (Collapse)AuthorAgeFilesLines
* [PCH] Fix a regression when PCH is used with -fmodulesBruno Cardoso Lopes2017-02-071-0/+13
Following up on r291465 after a regression in r276159. When we use -fmodule-name=X while building a PCH, modular headers in X will be textually included and the compiler knows that we are not building module X, so don't serialize such headers in the PCH as being part of a module, 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, the HFI for a modular header would map to the PCH, which would force a module load of and unexistent module ID. rdar://problem/30171164 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294361 91177308-0d34-0410-b5e6-96231b3b80d8