commit | 0f433840423ea2860b3e301456d7bf3c4d07968d | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Sat May 24 15:09:56 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Sat May 24 15:09:56 2008 +0000 |
tree | 13ca64e79e8b4e066fa3a090314dcae45120e73d | |
parent | 744cd42fc62aa7024becce8b7bf71f62a084e247 [diff] [blame] |
Call the correct destructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51544 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 7c44a20..a9afc81 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp
@@ -231,7 +231,7 @@ // NamespaceDecl uses "NextDeclarator" to chain namespace declarations // together. They are all top-level Decls. - this->~Decl(); + this->~NamespaceDecl(); C.getAllocator().Deallocate((void *)this); }