]> granicus.if.org Git - clang/commitdiff
Add IndirectField case in DeclContextPrinter::PrintDeclContext.
authorFrancois Pichet <pichet2000@gmail.com>
Tue, 21 Dec 2010 03:08:02 +0000 (03:08 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Tue, 21 Dec 2010 03:08:02 +0000 (03:08 +0000)
Fix PR8832.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122311 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTConsumers.cpp

index 274d3ad6f3d9cf13c74df307a496acf9de1b04d2..e029d8d85edab65aa4dee551f9cbab7c26cee63e 100644 (file)
@@ -354,6 +354,11 @@ void DeclContextPrinter::PrintDeclContext(const DeclContext* DC,
       PrintDeclContext(DC, Indentation+2);
       break;
     }
+    case Decl::IndirectField: {
+      IndirectFieldDecl* IFD = cast<IndirectFieldDecl>(*I);
+      Out << "<IndirectField> " << IFD << '\n';
+      break;
+    }
     case Decl::Field: {
       FieldDecl* FD = cast<FieldDecl>(*I);
       Out << "<field> " << FD << '\n';