diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 07:17:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 07:17:35 +0000 |
commit | 52e3fbaee806bba55e2cbcf1e09f11ad78019611 (patch) | |
tree | 7c16d56dc656da5720f09aa7d4eb3bb74796dbd8 /clang/lib/Serialization/Module.cpp | |
parent | 9140dd2fe773432aed5f8fb1ab166951b95e2900 (diff) | |
download | bcm5719-llvm-52e3fbaee806bba55e2cbcf1e09f11ad78019611.tar.gz bcm5719-llvm-52e3fbaee806bba55e2cbcf1e09f11ad78019611.zip |
Revert C++11ification in r203534 and r203536. Apparently our toolchains aren't
ready for this yet.
llvm-svn: 203548
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
-rw-r--r-- | clang/lib/Serialization/Module.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp index 77dcc4f99e3..2eb397176a1 100644 --- a/clang/lib/Serialization/Module.cpp +++ b/clang/lib/Serialization/Module.cpp @@ -45,6 +45,13 @@ ModuleFile::ModuleFile(ModuleKind Kind, unsigned Generation) {} ModuleFile::~ModuleFile() { + for (DeclContextInfosMap::iterator I = DeclContextInfos.begin(), + E = DeclContextInfos.end(); + I != E; ++I) { + if (I->second.NameLookupTableData) + delete I->second.NameLookupTableData; + } + delete static_cast<ASTIdentifierLookupTable *>(IdentifierLookupTable); delete static_cast<HeaderFileInfoLookupTable *>(HeaderFileInfoTable); delete static_cast<ASTSelectorLookupTable *>(SelectorLookupTable); |