commit | 860d4a787f28f5f31e0c172e2ab80f5ab93cbf9b | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Feb 23 01:07:39 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Feb 23 01:07:39 2010 +0000 |
tree | 34e57ee25299dd329b868daf75c8c50104e0e9d6 | |
parent | 5ce9d0b60682a7a18bf437448acfa7ae9c4d8193 [diff] |
really fix an off-by-one error git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96845 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index ed720df8..c316950 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -137,7 +137,7 @@ unsigned InVal = Val; unsigned NumBytes = 0; - while (Val > 128) { + while (Val >= 128) { OS << (Val&127) << "|128,"; Val >>= 7; ++NumBytes;