summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/raw_ostream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index df7f16e55b..3f576df819 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/include/llvm/Support/raw_ostream.h
@@ -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;
}