summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ASTConsumers.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-25 01:54:38 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-25 01:54:38 +0000
commite1883100a395180465b007c12860c124a6994101 (patch)
tree02a0b3d59e6d62164b2e1b888fa0f9d324b97039 /clang/lib/Frontend/ASTConsumers.cpp
parent0cf155174e6cf5a4a2cb80a17c5060196a54bbee (diff)
downloadbcm5719-llvm-e1883100a395180465b007c12860c124a6994101.tar.gz
bcm5719-llvm-e1883100a395180465b007c12860c124a6994101.zip
Who would have thought that empty classes were so tricky? Handle cases where an empty virtual base class needs to be moved aside because it conflicts with the first field.
llvm-svn: 82746
Diffstat (limited to 'clang/lib/Frontend/ASTConsumers.cpp')
-rw-r--r--clang/lib/Frontend/ASTConsumers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/ASTConsumers.cpp b/clang/lib/Frontend/ASTConsumers.cpp
index 5ef5c0e6f05..59251121453 100644
--- a/clang/lib/Frontend/ASTConsumers.cpp
+++ b/clang/lib/Frontend/ASTConsumers.cpp
@@ -540,6 +540,9 @@ public:
if (RD->isImplicit())
continue;
+ if (RD->isDependentType())
+ continue;
+
// FIXME: Do we really need to hard code this?
if (RD->getQualifiedNameAsString() == "__va_list_tag")
continue;
OpenPOWER on IntegriCloud