mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 18:56:04 +00:00
Modules are consumed when they are merged together by Linker.
Clear modules vector so that destructure does not try to delete these modules again. Patch by Chandler Carruth. llvm-svn: 33017
This commit is contained in:
parent
31e7a82bea
commit
05a840dae2
@ -353,6 +353,8 @@ LTO::optimizeModules(const std::string &OutputFilename,
|
||||
for (unsigned i = 1, e = modules.size(); i != e; ++i)
|
||||
if (theLinker.LinkModules(bigOne, modules[i], errMsg))
|
||||
return LTO_MODULE_MERGE_FAILURE;
|
||||
// all modules have been handed off to the linker.
|
||||
modules.clear();
|
||||
|
||||
sys::Path FinalOutputPath(FinalOutputFilename);
|
||||
FinalOutputPath.eraseSuffix();
|
||||
|
Loading…
x
Reference in New Issue
Block a user