[llvm-commits] [llvm] r48035 - /llvm/trunk/lib/Support/APInt.cpp

Evan Cheng evan.cheng at apple.com
Fri Mar 7 14:39:49 PST 2008


Author: evancheng
Date: Fri Mar  7 16:39:49 2008
New Revision: 48035

URL: http://llvm.org/viewvc/llvm-project?rev=48035&view=rev
Log:
Fix a typo. It's causing consumer-typeset to miscompile. Perhaps more.

Modified:
    llvm/trunk/lib/Support/APInt.cpp

Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=48035&r1=48034&r2=48035&view=diff

==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Fri Mar  7 16:39:49 2008
@@ -1175,7 +1175,7 @@
 /// Logical right-shift this APInt by shiftAmt.
 /// @brief Logical right-shift function.
 APInt APInt::lshr(const APInt &shiftAmt) const {
-  return ashr(shiftAmt.getLimitedValue(BitWidth));
+  return lshr(shiftAmt.getLimitedValue(BitWidth));
 }
 
 /// Logical right-shift this APInt by shiftAmt.





More information about the llvm-commits mailing list