forked from OSchip/llvm-project
parent
faad4168f9
commit
030c450fdc
|
@ -1133,7 +1133,7 @@ APInt APInt::lshr(uint32_t shiftAmt) const {
|
|||
/// Left-shift this APInt by shiftAmt.
|
||||
/// @brief Left-shift function.
|
||||
APInt APInt::shl(const APInt &shiftAmt) const {
|
||||
// It's undefined behavior in C to shift by BitWidth or greater, but
|
||||
// It's undefined behavior in C to shift by BitWidth or greater.
|
||||
return shl((uint32_t)shiftAmt.getLimitedValue(BitWidth));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue