Fixed a stinko which caused an ast-print test failure.

llvm-svn: 75861
This commit is contained in:
Fariborz Jahanian 2009-07-15 23:39:31 +00:00
parent a385d01cae
commit 30324d68b1
2 changed files with 2 additions and 3 deletions

View 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);
}

View 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 {