[nfc] remove unnecessary overload

This commit is contained in:
Kavon Farvardin
2023-10-28 20:47:22 -07:00
parent 29acda5136
commit 70fe62cce9
2 changed files with 1 additions and 5 deletions

View File

@@ -1062,7 +1062,7 @@ specializeApplySite(SILOptFunctionBuilder &FuncBuilder, ApplySite Apply,
// boxes, convert them from having escaping to having non-escaping
// semantics.
for (unsigned index : PromotedCalleeArgIndices) {
if (F->getArgument(index)->getType().isBoxedNonCopyableType(*F)) {
if (F->getArgument(index)->getType().isBoxedNonCopyableType(F)) {
auto boxType = F->getArgument(index)->getType().castTo<SILBoxType>();
bool isMutable = boxType->getLayout()->getFields()[0].isMutable();
auto checkKind = isMutable ? MarkUnresolvedNonCopyableValueInst::