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 4437bf4 commit a048455Copy full SHA for a048455
lib/SIL/Utils/MemAccessUtils.cpp
@@ -795,7 +795,6 @@ bool swift::isIdentityPreservingRefCast(SingleValueInstruction *svi) {
795
return isa<CopyValueInst>(svi) || isa<BeginBorrowInst>(svi) ||
796
isa<EndInitLetRefInst>(svi) || isa<BeginDeallocRefInst>(svi) ||
797
isa<EndCOWMutationInst>(svi) ||
798
- isa<MarkUnresolvedReferenceBindingInst>(svi) ||
799
isIdentityAndOwnershipPreservingRefCast(svi);
800
}
801
@@ -824,6 +823,7 @@ bool swift::isIdentityAndOwnershipPreservingRefCast(
824
823
// Ignore markers
825
case SILInstructionKind::MarkUninitializedInst:
826
case SILInstructionKind::MarkDependenceInst:
+ case SILInstructionKind::MarkUnresolvedReferenceBindingInst:
827
return true;
828
829
0 commit comments