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 | f37802859f7b87bc85899d19ff0868ddabc225e0 (patch) | |
tree | 6d80c5054954e9f3479af54203accab0db6132f9 | |
parent | a4b504abc9925cf7bb62dffb6be2ed509371f21b (diff) | |
download | external_llvm-f37802859f7b87bc85899d19ff0868ddabc225e0.zip external_llvm-f37802859f7b87bc85899d19ff0868ddabc225e0.tar.gz external_llvm-f37802859f7b87bc85899d19ff0868ddabc225e0.tar.bz2 |
Try to fix the build with libstdc++ 4.4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183909 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index b387e60..9225041 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/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>(), |