Add a comment.
authorDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 16:35:30 +0000 (16:35 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 16:35:30 +0000 (16:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111640 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/raw_ostream.h

index df7f16e55ba627c7f31efe39cd9b85fd0cb658cf..3f576df8197504daf99028da68977bd20d316fee 100644 (file)
@@ -372,7 +372,8 @@ public:
 
   /// has_error - Return the value of the flag in this raw_fd_ostream indicating
   /// whether an output error has been encountered.
-  /// This doesn't implicitly flush any pending output.
+  /// This doesn't implicitly flush any pending output.  Also, it doesn't
+  /// guarantee to detect all errors unless the the stream has been closed.
   bool has_error() const {
     return Error;
   }