diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 03:10:46 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 03:10:46 +0000 |
| commit | 4e2325b14b36c82f45b160dbe4e8b82c191ec949 (patch) | |
| tree | 6af246be2faa726f93c9fd88111f77abc086b446 /lib/Serialization/Module.cpp | |
| parent | c6c3e3d0b12fd269050f0d4fac5076ed1d9ed281 (diff) | |
| download | clang-4e2325b14b36c82f45b160dbe4e8b82c191ec949.tar.gz | |
If a visibility update record is found for a DeclContext after that Decl has
already been loaded, apply that update record to the Decl immediately, rather
than adding it to a pending list and never applying it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/Module.cpp')
| -rw-r--r-- | lib/Serialization/Module.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Serialization/Module.cpp b/lib/Serialization/Module.cpp index 2eb397176a..77dcc4f99e 100644 --- a/lib/Serialization/Module.cpp +++ b/lib/Serialization/Module.cpp @@ -45,13 +45,6 @@ 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); |
