Index: src/IceCompileServer.cpp |
diff --git a/src/IceCompileServer.cpp b/src/IceCompileServer.cpp |
index 20be6ee6fe0489ba98ab44cc46bc224232c60c9a..49c7ab847d6c7e92dad1c0f32889a6cc712f8f0d 100644 |
--- a/src/IceCompileServer.cpp |
+++ b/src/IceCompileServer.cpp |
@@ -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 |