Try to fix the build with libstdc++ 4.4.

llvm-svn: 183909
This commit is contained in:
Rafael Espindola 2013-06-13 15:52:54 +00:00
parent b851d42f47
commit c0bbe36245
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ static int RunProgramRemotelyWithTimeout(StringRef RemoteClientPath,
OS << "\n";
// The error message is in the output file, let's print it out from there.
std::ifstream ErrorFile(StdOutFile);
std::string StdOutFileName = StdOutFile.str();
std::ifstream ErrorFile(StdOutFileName.c_str());
if (ErrorFile) {
std::copy(std::istreambuf_iterator<char>(ErrorFile),
std::istreambuf_iterator<char>(),