From b9ad4e60638131f4d68c18f128bf44ccec2cd77c Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Wed, 28 Oct 2015 22:25:37 +0000 Subject: 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 --- clang/test/Modules/Inputs/use-builtin.h | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 clang/test/Modules/Inputs/use-builtin.h (limited to 'clang/test/Modules/Inputs/use-builtin.h') 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; -- cgit v1.2.3