mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Unbreak GetBufferSize() on uninitialized streams. This fixes a problem
that led to errs() getting made buffered. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -123,7 +123,7 @@ public:
|
|||||||
size_t GetBufferSize() {
|
size_t GetBufferSize() {
|
||||||
// If we're supposed to be buffered but haven't actually gotten around
|
// If we're supposed to be buffered but haven't actually gotten around
|
||||||
// to allocating the buffer yet, return the value that would be used.
|
// to allocating the buffer yet, return the value that would be used.
|
||||||
if (!Unbuffered && !OutBufStart)
|
if (BufferMode != Unbuffered && OutBufStart == 0)
|
||||||
return preferred_buffer_size();
|
return preferred_buffer_size();
|
||||||
|
|
||||||
// Otherwise just return the size of the allocated buffer.
|
// Otherwise just return the size of the allocated buffer.
|
||||||
|
Reference in New Issue
Block a user