Skip to content

Commit e9097c7

Browse files
committed
removed redundant check for lowBits in APInt::SetBits
1 parent 85ccb4e commit e9097c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/ADT/APInt.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,7 @@ class [[nodiscard]] APInt {
13701370
assert(loBit <= hiBit && "loBit greater than hiBit");
13711371
if (loBit == hiBit)
13721372
return;
1373-
if (loBit < APINT_BITS_PER_WORD && hiBit <= APINT_BITS_PER_WORD) {
1374-
//if (hiBit <= APINT_BITS_PER_WORD) {
1373+
if (hiBit <= APINT_BITS_PER_WORD) {
13751374
uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - (hiBit - loBit));
13761375
mask <<= loBit;
13771376
if (isSingleWord())

0 commit comments

Comments
 (0)