From 4e97e94809b8e9205e5aa38a772b3ac5aedacbea Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 7 Mar 2008 22:39:49 +0000 Subject: Fix a typo. It's causing consumer-typeset to miscompile. Perhaps more. llvm-svn: 48035 --- llvm/lib/Support/APInt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index d5ce5035aca..622d0f34362 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -1175,7 +1175,7 @@ APInt APInt::ashr(uint32_t shiftAmt) const { /// 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. -- cgit v1.2.3