summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/builtin.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-04-03 23:06:26 +0000
committerDouglas Gregor <dgregor@apple.com>2013-04-03 23:06:26 +0000
commit151976694a8e63bb6ff5e280d77371a9490b9413 (patch)
treec6cba7c16dcc09bedff10266bba0c3f186ccae1f /clang/test/Modules/Inputs/builtin.h
parent54dc7fdefb05ce04e7864335e231c4f597967b6d (diff)
downloadbcm5719-llvm-151976694a8e63bb6ff5e280d77371a9490b9413.tar.gz
bcm5719-llvm-151976694a8e63bb6ff5e280d77371a9490b9413.zip
<rdar://problem/13560075> Teach name lookup for builtin names to find hidden declarations.
Normal name lookup ignores any hidden declarations. When name lookup for builtin declarations fails, we just synthesize a new declaration at the point of use. With modules, this could lead to multiple declarations of the same builtin, if one came from a (hidden) submodule that was later made visible. Teach name lookup to always find builtin names, so we don't create these redundant declarations in the first place. llvm-svn: 178711
Diffstat (limited to 'clang/test/Modules/Inputs/builtin.h')
-rw-r--r--clang/test/Modules/Inputs/builtin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/builtin.h b/clang/test/Modules/Inputs/builtin.h
new file mode 100644
index 00000000000..7be90177d19
--- /dev/null
+++ b/clang/test/Modules/Inputs/builtin.h
@@ -0,0 +1,3 @@
+int i;
+int *p = &i;
+
OpenPOWER on IntegriCloud