diff options
author | Ben Langmuir <blangmuir@apple.com> | 2015-10-28 22:25:37 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2015-10-28 22:25:37 +0000 |
commit | b9ad4e60638131f4d68c18f128bf44ccec2cd77c (patch) | |
tree | df6f584bfb6f07b12dd63e557e4e9efaea7d8895 /clang/test/Modules/Inputs/use-builtin.h | |
parent | a309efef399d342a364d051581b5f3738deba370 (diff) | |
download | bcm5719-llvm-b9ad4e60638131f4d68c18f128bf44ccec2cd77c.tar.gz bcm5719-llvm-b9ad4e60638131f4d68c18f128bf44ccec2cd77c.zip |
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
llvm-svn: 251565
Diffstat (limited to 'clang/test/Modules/Inputs/use-builtin.h')
-rw-r--r-- | clang/test/Modules/Inputs/use-builtin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/use-builtin.h b/clang/test/Modules/Inputs/use-builtin.h new file mode 100644 index 00000000000..fd047419a6d --- /dev/null +++ b/clang/test/Modules/Inputs/use-builtin.h @@ -0,0 +1,2 @@ +@import builtin; +@import builtin.sub; |