really fix an off-by-one error
authorChris Lattner <sabre@nondot.org>
Tue, 23 Feb 2010 01:07:39 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Feb 2010 01:07:39 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96845 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelMatcherEmitter.cpp

index ed720df8081d5781b12eb736679dbdc7a5015837..c3169509db51d828d4424e965639cf6091ba118a 100644 (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;