projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9e931f6
)
Fix undefined behavior.
author
Ahmed Charles
<ace2001ac@gmail.com>
Fri, 24 Feb 2012 19:06:15 +0000
(19:06 +0000)
committer
Ahmed Charles
<ace2001ac@gmail.com>
Fri, 24 Feb 2012 19:06:15 +0000
(19:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151385
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index c580dd3ba3e40352a557b13eb243e0156a847639..0d4e0f9f752aff20b341283196aacadcb2e871b8 100644
(file)
--- a/
lib/Support/APInt.cpp
+++ b/
lib/Support/APInt.cpp
@@
-1234,7
+1234,7
@@
APInt APInt::lshr(const APInt &shiftAmt) const {
/// @brief Logical right-shift function.
APInt APInt::lshr(unsigned shiftAmt) const {
if (isSingleWord()) {
- if (shiftAmt
=
= BitWidth)
+ if (shiftAmt
>
= BitWidth)
return APInt(BitWidth, 0);
else
return APInt(BitWidth, this->VAL >> shiftAmt);