diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-07-15 23:39:31 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-07-15 23:39:31 +0000 |
commit | a8ded8be82f7d5f5fc93c8626cfa9ca9cee4199e (patch) | |
tree | 1f2796fb1c14d320e7547e66e92c10ae233fede0 | |
parent | dbfe99ef39163fd3574332673ee175c2bb6ef3ca (diff) |
Fixed a stinko which caused an ast-print test failure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75861 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/DeclCXX.h | 3 | ||||
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index af4976df76..3c2d3f406b 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -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); } diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 3a8261f82c..84ae72977e 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -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 { |