Fix integer overflow bug in raw_ostream::write. This showed up as a
authorNick Lewycky <nicholas@mxc.ca>
Sun, 28 Aug 2011 03:30:02 +0000 (03:30 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 28 Aug 2011 03:30:02 +0000 (03:30 +0000)
commitb1b051ec97c4e3c02cea554e169cbb4f85bcb2de
tree2f97376387254854e46e0aa6dd60021973ff6056
parentf5ec9b55e871d326b8917f203711529273e7fa54
Fix integer overflow bug in raw_ostream::write. This showed up as a
non-deterministic crash in the test suite. Fixes PR10055!

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