]> granicus.if.org Git - clang/commitdiff
llvm::errs() is non-buffered, so it doesn't need to be flushed.
authorDan Gohman <gohman@apple.com>
Mon, 28 Jun 2010 15:56:07 +0000 (15:56 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 28 Jun 2010 15:56:07 +0000 (15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107012 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/HTMLDiagnostics.cpp

index 401f177ce3e949bcf796337f85a88058091399cc..ff9867fb5f1683efd925e5609df9702fe98b6ad1 100644 (file)
@@ -294,8 +294,8 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D,
   llvm::raw_fd_ostream os(H.c_str(), ErrorMsg);
 
   if (!ErrorMsg.empty()) {
-    (llvm::errs() << "warning: could not create file '" << F.str()
-                  << "'\n").flush();
+    llvm::errs() << "warning: could not create file '" << F.str()
+                 << "'\n";
     return;
   }