Changes in directory llvm/lib/Support:

APInt.cpp updated: 1.37 -> 1.38
---
Log message:

Whoops, last word with bits in large shift left wasn't correct.


---
Diffs of the changes:  (+1 -1)

 APInt.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Support/APInt.cpp
diff -u llvm/lib/Support/APInt.cpp:1.37 llvm/lib/Support/APInt.cpp:1.38
--- llvm/lib/Support/APInt.cpp:1.37     Sat Feb 24 18:56:44 2007
+++ llvm/lib/Support/APInt.cpp  Sat Feb 24 19:08:58 2007
@@ -994,7 +994,7 @@
   for (; i > offset; --i)
     val[i] = pVal[i-offset] << wordShift |
              pVal[i-offset-1] >> (APINT_BITS_PER_WORD - wordShift);
-  val[offset] = pVal[offset-1] << wordShift;
+  val[offset] = pVal[0] << wordShift;
   for (i = 0; i < offset; ++i)
     val[i] = 0;
   val[getNumWords()-1] &= ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - BitWidth);



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to