diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-23 01:07:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-23 01:07:39 +0000 |
commit | 860d4a787f28f5f31e0c172e2ab80f5ab93cbf9b (patch) | |
tree | 34e57ee25299dd329b868daf75c8c50104e0e9d6 /utils/TableGen/DAGISelMatcherEmitter.cpp | |
parent | 5ce9d0b60682a7a18bf437448acfa7ae9c4d8193 (diff) | |
download | external_llvm-860d4a787f28f5f31e0c172e2ab80f5ab93cbf9b.zip external_llvm-860d4a787f28f5f31e0c172e2ab80f5ab93cbf9b.tar.gz external_llvm-860d4a787f28f5f31e0c172e2ab80f5ab93cbf9b.tar.bz2 |
really fix an off-by-one error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcherEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |