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 | a24cd4f35a640268a254fda52744672d6ecdb466 (patch) | |
tree | 13e1f26e3b71f93dacebfe0f099e9ac3c2efb733 /clang/lib/AST/DeclBase.cpp | |
parent | a7e139a3e6fdca21c2e85eaa5d3bddc7d51977cb (diff) | |
download | bcm5719-llvm-a24cd4f35a640268a254fda52744672d6ecdb466.tar.gz bcm5719-llvm-a24cd4f35a640268a254fda52744672d6ecdb466.zip |
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
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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<ScopedDecl>(this)) { // Observe the unrolled recursion. By setting N->NextDeclarator = 0x0 |