llvm::errs() is non-buffered, so it doesn't need to be flushed.

llvm-svn: 107012
This commit is contained in:
Dan Gohman 2010-06-28 15:56:07 +00:00
parent 8a62f18091
commit 3bc1b0c882
1 changed files with 2 additions and 2 deletions

View 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;
}