]> granicus.if.org Git - clang/commitdiff
Don't try to dump invalid decls or forward decls.
authorAnders Carlsson <andersca@mac.com>
Sat, 26 Sep 2009 01:02:04 +0000 (01:02 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 26 Sep 2009 01:02:04 +0000 (01:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82827 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTConsumers.cpp

index 59251121453f8bf491ed6265ca752a0835953595..8d76680f6f928a267ecf08fa260fd4ceec29815c 100644 (file)
@@ -543,6 +543,12 @@ public:
       if (RD->isDependentType())
         continue;
       
+      if (RD->isInvalidDecl())
+        continue;
+      
+      if (!RD->getDefinition(C))
+        continue;
+      
       // FIXME: Do we really need to hard code this?
       if (RD->getQualifiedNameAsString() == "__va_list_tag")
         continue;