aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-13 15:52:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-13 15:52:54 +0000
commitf37802859f7b87bc85899d19ff0868ddabc225e0 (patch)
tree6d80c5054954e9f3479af54203accab0db6132f9
parenta4b504abc9925cf7bb62dffb6be2ed509371f21b (diff)
downloadexternal_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.cpp3
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>(),