Don't crash if write_impl() leaves less buffer space available than expected.
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 12 Mar 2013 23:55:24 +0000 (23:55 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 12 Mar 2013 23:55:24 +0000 (23:55 +0000)
commitb79d25ca9c3b895d8fdc88c3acefec1202ca9da3
treeb3f5854caefad808ec845ba0a5769a2cb57ffc0e
parent46561ce249984ddea405ce837b53367a59fd9f3b
Don't crash if write_impl() leaves less buffer space available than expected.

This was tickled by a Clang diagnostic; Clang test case to follow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176911 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/raw_ostream.cpp