mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
More APInt API updates
Updating more APInt and bit-manipulation API changes.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user