diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-15 17:33:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-15 17:33:16 +0000 |
commit | 0874bd31984529b71aa4ffaac73be948e2402222 (patch) | |
tree | d6e11ff172f7cb8347be11406ece6da8ecb3146f /lib/AST/DeclBase.cpp | |
parent | 7df7b6bb800e1987951285ea192e4f347e1b603a (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index 6ddb967a63..45ba794d6b 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -321,7 +321,6 @@ void Decl::swapAttrs(Decl *RHS) { void Decl::Destroy(ASTContext& C) { - if (ScopedDecl* SD = dyn_cast<ScopedDecl>(this)) { // Observe the unrolled recursion. By setting N->NextDeclarator = 0x0 |