forked from OSchip/llvm-project
Fix bot failure from r262721: unintented change in gold-plugin save-temps
The split code gen task ID should not be appended to save-temps output file when the parallelism factor is 1 (not actually splitting). llvm-svn: 262731
This commit is contained in:
parent
fefc4d50ed
commit
3b8f6126ac
|
@ -1013,7 +1013,9 @@ void CodeGen::runSplitCodeGen() {
|
|||
std::list<llvm::raw_fd_ostream> OSs;
|
||||
std::vector<llvm::raw_pwrite_stream *> OSPtrs(MaxThreads);
|
||||
for (unsigned I = 0; I != MaxThreads; ++I) {
|
||||
int FD = openOutputFile(Filename, TempOutFile, Filenames[I], I);
|
||||
int FD = openOutputFile(Filename, TempOutFile, Filenames[I],
|
||||
// Only append ID if there are multiple tasks.
|
||||
MaxThreads > 1 ? I : -1);
|
||||
OSs.emplace_back(FD, true);
|
||||
OSPtrs[I] = &OSs.back();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue