[cfe-commits] r82827 - /cfe/trunk/lib/Frontend/ASTConsumers.cpp

Anders Carlsson andersca at mac.com
Fri Sep 25 18:02:04 PDT 2009


Author: andersca
Date: Fri Sep 25 20:02:04 2009
New Revision: 82827

URL: http://llvm.org/viewvc/llvm-project?rev=82827&view=rev
Log:
Don't try to dump invalid decls or forward decls.

Modified:
    cfe/trunk/lib/Frontend/ASTConsumers.cpp

Modified: cfe/trunk/lib/Frontend/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTConsumers.cpp?rev=82827&r1=82826&r2=82827&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/ASTConsumers.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTConsumers.cpp Fri Sep 25 20:02:04 2009
@@ -543,6 +543,12 @@
       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;





More information about the cfe-commits mailing list