Commit 4e6ea83a by Karl Schimpf

Change from ::stdout to stderr when reporting fatal error.

The pnacl linux x86_64 buildbot doesn't understand ::stdout (it uses a macro to define stdout). Fix by removing :: prefix. Also redirects the error messages to stderr instead of stdout. BUG=None R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1383053002 .
parent 7e64eaaa
......@@ -109,9 +109,9 @@ void reportFatalErrorThenExitSuccess(void *UserData, const std::string &Reason,
llvm::raw_svector_ostream OS(Buffer);
OS << "LLVM ERROR: " << Reason << "\n";
llvm::StringRef MessageStr = OS.str();
ssize_t written =
::fwrite(MessageStr.data(), sizeof(char), MessageStr.size(), ::stdout);
(void)written; // If something went wrong, we deliberately just give up.
ssize_t Written =
std::fwrite(MessageStr.data(), sizeof(char), MessageStr.size(), stderr);
(void)Written; // If something went wrong, we deliberately just give up.
// If we reached here, we are failing ungracefully. Run the interrupt handlers
// to make sure any special cleanups get done, in particular that we remove
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment