]> granicus.if.org Git - clang/commit
Modules: Clean up ModuleFile::Imports in ModuleManager::removeModules
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 28 Jan 2017 23:12:13 +0000 (23:12 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 28 Jan 2017 23:12:13 +0000 (23:12 +0000)
commit94a8da72b153dbdb7ef971743f9895223f18d959
treef3b5c32aa628b5df73bb56a11f97d42fc2c6913b
parent98d193728f18afdb0f941d0d5ba8086518435aeb
Modules: Clean up ModuleFile::Imports in ModuleManager::removeModules

I don't have a testcase for this (and I'm not sure if it's an observable
bug), but it seems obviously wrong that ModuleManager::removeModules is
failing to clean up deleted modules from ModuleFile::Imports.  See the
code in ModuleManager::addModule that inserts into ModuleFile::Imports;
we need the inverse operation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ModuleManager.cpp