Call the correct destructor.

llvm-svn: 51544
This commit is contained in:
Ted Kremenek 2008-05-24 15:09:56 +00:00
parent 3f4ebba1fa
commit a08154d85f
1 changed files with 1 additions and 1 deletions

View 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);
}