]> granicus.if.org Git - clang/commit
Fix missing builtin identifier infos with PCH+modules
authorBen Langmuir <blangmuir@apple.com>
Wed, 28 Oct 2015 22:25:37 +0000 (22:25 +0000)
committerBen Langmuir <blangmuir@apple.com>
Wed, 28 Oct 2015 22:25:37 +0000 (22:25 +0000)
commit132cc53803d24ad4c67cd88709ffc62ea09af2d6
tree28a53dcbbc177fb5fabf05fe4bfa9c02f6fac30b
parent78cbefbe1afb8d2946f876418d4cf8aa8646ccd1
Fix missing builtin identifier infos with PCH+modules

Use the *current* state of "is-moduleness" rather than the state at
serialization time so that if we read a builtin identifier from a module
that wasn't "interesting" to that module, we will still write it out to
a PCH that imports that module.

Otherwise, we would get mysterious "unknown builtin" errors when using
PCH+modules.

rdar://problem/23287656

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp
test/Modules/Inputs/builtin_sub.h
test/Modules/Inputs/use-builtin.h [new file with mode: 0644]
test/Modules/builtins.m