From d784d4ddac3baa6592863869e55c39348924836a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 28 Jun 2010 15:56:07 +0000 Subject: [PATCH] llvm::errs() is non-buffered, so it doesn't need to be flushed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107012 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Checker/HTMLDiagnostics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Checker/HTMLDiagnostics.cpp b/lib/Checker/HTMLDiagnostics.cpp index 401f177ce3..ff9867fb5f 100644 --- a/lib/Checker/HTMLDiagnostics.cpp +++ b/lib/Checker/HTMLDiagnostics.cpp @@ -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; } -- 2.40.0