llvm.org GIT mirror llvm / eddc485
bugpoint/ToolRunner.cpp: ProcessFailure(): Close ErrorFD immediately, or it couldn't be reopened on Win32. FIXME: We may have an option in openFileForWrite(), not to use ResultFD but to close it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212902 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
147147 errs() << "Error making unique filename: " << EC.message() << "\n";
148148 exit(1);
149149 }
150
151 #ifdef _WIN32
152 // Close ErrorFD immediately, or it couldn't be reopened on Win32.
153 // FIXME: We may have an option in openFileForWrite(), not to use ResultFD
154 // but to close it.
155 delete new raw_fd_ostream(ErrorFD, true);
156 #endif
157
150158 RunProgramWithTimeout(ProgPath, Args, "", ErrorFilename.str(),
151159 ErrorFilename.str(), Timeout, MemoryLimit);
152160 // FIXME: check return code ?