]> granicus.if.org Git - clang/commitdiff
Call the correct destructor.
authorTed Kremenek <kremenek@apple.com>
Sat, 24 May 2008 15:09:56 +0000 (15:09 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 24 May 2008 15:09:56 +0000 (15:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51544 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index 7c44a20c2e7ba20685f82f3322b00991242641da..a9afc816e2e119dc0e8ffdc31cb3491f7578318b 100644 (file)
@@ -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);
 }