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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user