aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-07 22:39:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-07 22:39:49 +0000
commit218c90177a08bbfdc371aad84470357ebd91e37e (patch)
tree8cf25c9aa68ec6692f703a910e11284dea2e15d5 /lib
parent23c111f59213c9c6de38feac71338ce2875ea06d (diff)
downloadexternal_llvm-218c90177a08bbfdc371aad84470357ebd91e37e.zip
external_llvm-218c90177a08bbfdc371aad84470357ebd91e37e.tar.gz
external_llvm-218c90177a08bbfdc371aad84470357ebd91e37e.tar.bz2
Fix a typo. It's causing consumer-typeset to miscompile. Perhaps more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index d5ce503..622d0f3 100644
--- a/lib/Support/APInt.cpp
+++ b/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.