summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-24 15:09:56 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-24 15:09:56 +0000
commita08154d85f8eb7ec27fce318a3796d83c362a851 (patch)
tree92be8281728014189b76c73a6109ed16a3864b1e /clang/lib
parent3f4ebba1fa8fc6fd26e71d4f3df2deec81cb15fb (diff)
downloadbcm5719-llvm-a08154d85f8eb7ec27fce318a3796d83c362a851.tar.gz
bcm5719-llvm-a08154d85f8eb7ec27fce318a3796d83c362a851.zip
Call the correct destructor.
llvm-svn: 51544
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 7c44a20c2e7..a9afc816e2e 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -231,7 +231,7 @@ void NamespaceDecl::Destroy(ASTContext& C) {
// NamespaceDecl uses "NextDeclarator" to chain namespace declarations
// together. They are all top-level Decls.
- this->~Decl();
+ this->~NamespaceDecl();
C.getAllocator().Deallocate((void *)this);
}
OpenPOWER on IntegriCloud