]> granicus.if.org Git - clang/commitdiff
Fixed a stinko which caused an ast-print test failure.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 15 Jul 2009 23:39:31 +0000 (23:39 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 15 Jul 2009 23:39:31 +0000 (23:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75861 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h
lib/AST/DeclPrinter.cpp

index af4976df7629a142b61a7f308bde983b924f83c9..3c2d3f406b57fdf419172b14c431cd99a58fd6dd 100644 (file)
@@ -909,7 +909,8 @@ class CXXDestructorDecl : public CXXMethodDecl {
                     DeclarationName N, QualType T,
                     bool isInline, bool isImplicitlyDeclared)
     : CXXMethodDecl(CXXDestructor, RD, L, N, T, false, isInline),
-      ImplicitlyDefined(false) { 
+      ImplicitlyDefined(false),
+      BaseOrMemberDestructions(0), NumBaseOrMemberDestructions(0) { 
     setImplicit(isImplicitlyDeclared);
   }
 
index 3a8261f82c446df212704274170e52f949109006..84ae72977e6e4eb88bd7d949828804187e3bd168 100644 (file)
@@ -374,7 +374,6 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
         }
       }
     }
-#if 0
     else if (CXXDestructorDecl *DDecl = dyn_cast<CXXDestructorDecl>(D)) {
       if (DDecl->getNumBaseOrMemberDestructions() > 0) {
         // FIXME. This is strictly for visualization of destructor's AST for
@@ -405,7 +404,6 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
         }
       }
     }
-#endif
     else
       AFT->getResultType().getAsStringInternal(Proto, Policy);
   } else {