really fix an off-by-one error

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-02-23 01:07:39 +00:00
parent 5ce9d0b606
commit 860d4a787f

View File

@ -137,7 +137,7 @@ static unsigned EmitVBRValue(unsigned Val, raw_ostream &OS) {
unsigned InVal = Val;
unsigned NumBytes = 0;
while (Val > 128) {
while (Val >= 128) {
OS << (Val&127) << "|128,";
Val >>= 7;
++NumBytes;