Skip to content

Commit 70fe62c

Browse files
committed
[nfc] remove unnecessary overload
1 parent 29acda5 commit 70fe62c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

include/swift/SIL/SILType.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,6 @@ class SILType {
862862
return getSILBoxFieldType(fn).isMoveOnly();
863863
}
864864

865-
bool isBoxedNonCopyableType(const SILFunction &fn) const {
866-
return isBoxedNonCopyableType(&fn);
867-
}
868-
869865
bool isBoxedMoveOnlyWrappedType(const SILFunction *fn) const {
870866
if (!this->is<SILBoxType>())
871867
return false;

lib/SILOptimizer/Transforms/AllocBoxToStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ specializeApplySite(SILOptFunctionBuilder &FuncBuilder, ApplySite Apply,
10621062
// boxes, convert them from having escaping to having non-escaping
10631063
// semantics.
10641064
for (unsigned index : PromotedCalleeArgIndices) {
1065-
if (F->getArgument(index)->getType().isBoxedNonCopyableType(*F)) {
1065+
if (F->getArgument(index)->getType().isBoxedNonCopyableType(F)) {
10661066
auto boxType = F->getArgument(index)->getType().castTo<SILBoxType>();
10671067
bool isMutable = boxType->getLayout()->getFields()[0].isMutable();
10681068
auto checkKind = isMutable ? MarkUnresolvedNonCopyableValueInst::

0 commit comments

Comments
 (0)