aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
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
commitebf27b1831e6c4d7f4bc30e111a4d6340ff690d1 (patch)
tree13ca64e79e8b4e066fa3a090314dcae45120e73d /lib/AST/Decl.cpp
parent2c33a164371482b43a13e500dbb4d3278605c5f4 (diff)
Call the correct destructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index 7c44a20c2e..a9afc816e2 100644
--- a/lib/AST/Decl.cpp
+++ b/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);
}