summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commit4e97e94809b8e9205e5aa38a772b3ac5aedacbea (patch)
tree845ca03b99651b39ceac7e7c71bc5642b891de42 /llvm/lib/Support
parent6c11f47c544847df1893edf1aa6d3dbb6cdd265d (diff)
downloadbcm5719-llvm-4e97e94809b8e9205e5aa38a772b3ac5aedacbea.tar.gz
bcm5719-llvm-4e97e94809b8e9205e5aa38a772b3ac5aedacbea.zip
Fix a typo. It's causing consumer-typeset to miscompile. Perhaps more.
llvm-svn: 48035
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
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.
OpenPOWER on IntegriCloud