[Modules] Free modules that failed signature verification.
The control flow and ownership is weird enough so unique_ptr doesn't help here :( llvm-svn: 220569
This commit is contained in:
@@ -145,6 +145,7 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type,
|
||||
// module is *itself* up to date, but has an out-of-date importer.
|
||||
Modules.erase(Entry);
|
||||
Chain.pop_back();
|
||||
delete New;
|
||||
return OutOfDate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user