diff options
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index 8eb52b722d..7363bd0247 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -332,6 +332,9 @@ void Decl::swapAttrs(Decl *RHS) { void Decl::Destroy(ASTContext& C) { +#if 0 + // FIXME: This causes double-destroys in some cases, so it is + // disabled at the moment. if (ScopedDecl* SD = dyn_cast<ScopedDecl>(this)) { // Observe the unrolled recursion. By setting N->NextDeclarator = 0x0 @@ -347,7 +350,8 @@ void Decl::Destroy(ASTContext& C) { N = Tmp; } } - +#endif + this->~Decl(); C.getAllocator().Deallocate((void *)this); } |