llvm.org GIT mirror llvm / 2737610
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33017 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 12 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
352352 for (unsigned i = 1, e = modules.size(); i != e; ++i)
353353 if (theLinker.LinkModules(bigOne, modules[i], errMsg))
354354 return LTO_MODULE_MERGE_FAILURE;
355 // all modules have been handed off to the linker.
356 modules.clear();
355357
356358 sys::Path FinalOutputPath(FinalOutputFilename);
357359 FinalOutputPath.eraseSuffix();