[llvm-commits] [llvm] r96845 - /llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 22 17:07:40 PST 2010
Author: lattner
Date: Mon Feb 22 19:07:39 2010
New Revision: 96845
URL: http://llvm.org/viewvc/llvm-project?rev=96845&view=rev
Log:
really fix an off-by-one error
Modified:
llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp?rev=96845&r1=96844&r2=96845&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp Mon Feb 22 19:07:39 2010
@@ -137,7 +137,7 @@
unsigned InVal = Val;
unsigned NumBytes = 0;
- while (Val > 128) {
+ while (Val >= 128) {
OS << (Val&127) << "|128,";
Val >>= 7;
++NumBytes;
More information about the llvm-commits
mailing list