diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 15:52:54 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 15:52:54 +0000 |
| commit | c0bbe36245df1b4feaee6239f344738bea31d244 (patch) | |
| tree | 0aa71d8a4a0cb98a97f9d6ce9757631ceb7de343 /llvm | |
| parent | b851d42f47303827719f15baa5a5fca6628d1eb3 (diff) | |
| download | llvm-c0bbe36245df1b4feaee6239f344738bea31d244.zip llvm-c0bbe36245df1b4feaee6239f344738bea31d244.tar.gz llvm-c0bbe36245df1b4feaee6239f344738bea31d244.tar.bz2 | |
Try to fix the build with libstdc++ 4.4.
llvm-svn: 183909
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/bugpoint/ToolRunner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp index b387e60..9225041 100644 --- a/llvm/tools/bugpoint/ToolRunner.cpp +++ b/llvm/tools/bugpoint/ToolRunner.cpp @@ -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>(), |
