From a24cd4f35a640268a254fda52744672d6ecdb466 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 15 Dec 2008 17:33:16 +0000 Subject: Don't double-destroy constructors defined out-of-line. This is a half-solution; the real solution is coming when constructors and destructors are treated like all other functions by ActOnDeclarator. llvm-svn: 61037 --- clang/lib/AST/DeclBase.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'clang/lib/AST/DeclBase.cpp') diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index 6ddb967a639..45ba794d6bc 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -321,7 +321,6 @@ void Decl::swapAttrs(Decl *RHS) { void Decl::Destroy(ASTContext& C) { - if (ScopedDecl* SD = dyn_cast(this)) { // Observe the unrolled recursion. By setting N->NextDeclarator = 0x0 -- cgit v1.2.3