Use forward declarations for ASTDeclContextNameLookupTable and add a missing delete.

It would be nice to use OwningPtr here, but DeclContextInfo is stored in a DenseMap.

llvm-svn: 154763
This commit is contained in:
Benjamin Kramer
2012-04-15 12:36:49 +00:00
parent ccdf735e52
commit 89f0b2d8a2
6 changed files with 24 additions and 14 deletions

View File

@@ -45,8 +45,7 @@ ModuleFile::~ModuleFile() {
E = DeclContextInfos.end();
I != E; ++I) {
if (I->second.NameLookupTableData)
delete static_cast<ASTDeclContextNameLookupTable*>(
I->second.NameLookupTableData);
delete I->second.NameLookupTableData;
}
delete static_cast<ASTIdentifierLookupTable *>(IdentifierLookupTable);