We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ccb4e commit e9097c7Copy full SHA for e9097c7
llvm/include/llvm/ADT/APInt.h
@@ -1370,8 +1370,7 @@ class [[nodiscard]] APInt {
1370
assert(loBit <= hiBit && "loBit greater than hiBit");
1371
if (loBit == hiBit)
1372
return;
1373
- if (loBit < APINT_BITS_PER_WORD && hiBit <= APINT_BITS_PER_WORD) {
1374
- //if (hiBit <= APINT_BITS_PER_WORD) {
+ if (hiBit <= APINT_BITS_PER_WORD) {
1375
uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - (hiBit - loBit));
1376
mask <<= loBit;
1377
if (isSingleWord())
0 commit comments