From 4e2325b14b36c82f45b160dbe4e8b82c191ec949 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 11 Mar 2014 03:10:46 +0000 Subject: 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 --- lib/Serialization/Module.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/Serialization/Module.cpp') 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(IdentifierLookupTable); delete static_cast(HeaderFileInfoTable); delete static_cast(SelectorLookupTable); -- cgit v1.2.3