aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/raw_ostream.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index 852f7db4a1..1eb92ed0ff 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/include/llvm/Support/raw_ostream.h
@@ -84,6 +84,8 @@ public:
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
+ if (Unbuffered)
+ flush_impl();
return *this;
}
@@ -91,6 +93,8 @@ public:
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
+ if (Unbuffered)
+ flush_impl();
return *this;
}
@@ -98,6 +102,8 @@ public:
if (OutBufCur >= OutBufEnd)
flush_impl();
*OutBufCur++ = C;
+ if (Unbuffered)
+ flush_impl();
return *this;
}