diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-15 12:36:49 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-15 12:36:49 +0000 |
commit | b1758c662524e18d65d260188fdcbbdee6a9316b (patch) | |
tree | b935cbabf23c211278ea2d3e2ec809109ea3eb06 /lib/Serialization/Module.cpp | |
parent | a9ab209752e4afe059f1456871bc442f28914e37 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/Module.cpp')
-rw-r--r-- | lib/Serialization/Module.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Serialization/Module.cpp b/lib/Serialization/Module.cpp index 16b95e2a68..ff241d3d41 100644 --- a/lib/Serialization/Module.cpp +++ b/lib/Serialization/Module.cpp @@ -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); |