From: Rafael Espindola Date: Thu, 13 Jun 2013 15:52:54 +0000 (+0000) Subject: Try to fix the build with libstdc++ 4.4. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f37802859f7b87bc85899d19ff0868ddabc225e0;p=oota-llvm.git 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 --- diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index b387e60b744..92250418d1b 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(ErrorFile), std::istreambuf_iterator(),