forked from OSchip/llvm-project
Fixed a stinko which caused an ast-print test failure.
llvm-svn: 75861
This commit is contained in:
parent
a385d01cae
commit
30324d68b1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue