summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/Module.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-15 12:36:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-15 12:36:49 +0000
commit89f0b2d8a2a88609b859e040d0593fcff364e3d0 (patch)
treef915db7d436de7b98acde54f3ecc8adc03ce0abb /clang/lib/Serialization/Module.cpp
parentccdf735e52404ac6774f0c0a67f5766e8253dc5b (diff)
downloadbcm5719-llvm-89f0b2d8a2a88609b859e040d0593fcff364e3d0.tar.gz
bcm5719-llvm-89f0b2d8a2a88609b859e040d0593fcff364e3d0.zip
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
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
-rw-r--r--clang/lib/Serialization/Module.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp
index 16b95e2a683..ff241d3d410 100644
--- a/clang/lib/Serialization/Module.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud