More APInt API updates

Updating more APInt and bit-manipulation API changes.
This commit is contained in:
Evan Wilde
2023-07-24 12:38:45 -07:00
parent 309aed4925
commit fd156f2717
10 changed files with 17 additions and 15 deletions

View File

@@ -301,7 +301,7 @@ static bool onlyStoresToTailObjects(BuiltinInst *destroyArray,
AllocRefInstBase *allocRef) {
// Get the number of destroyed elements.
auto *literal = dyn_cast<IntegerLiteralInst>(destroyArray->getArguments()[2]);
if (!literal || literal->getValue().getMinSignedBits() > 32)
if (!literal || literal->getValue().getSignificantBits() > 32)
return false;
int numDestroyed = literal->getValue().getSExtValue();