diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-09-01 13:24:39 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-09-01 13:24:39 +0000 |
commit | 6a4a210126264ad0f947c4ca5361e8530bf4e877 (patch) | |
tree | 8889459e282da024ed437c5beed5c9f9750d1a6d /clang/lib/Serialization/Module.cpp | |
parent | 3b138079c9624c10c63ca858e48b68eed698b9b6 (diff) | |
download | llvm-6a4a210126264ad0f947c4ca5361e8530bf4e877.zip llvm-6a4a210126264ad0f947c4ca5361e8530bf4e877.tar.gz llvm-6a4a210126264ad0f947c4ca5361e8530bf4e877.tar.bz2 |
Reverting r246497 (which requires also reverting r246524 and r246521 to avoid merge conflicts). It broke the build on MSVC 2015. It also broke an MSVC 2013 bot with testing issues.
llvm\tools\clang\lib\serialization\MultiOnDiskHashTable.h(117):
error C2065: 'Files': undeclared identifier
http://bb.pgr.jp/builders/ninja-clang-i686-msc18-R/builds/2917
llvm-svn: 246546
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 4884f0b..9111fc4 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); |