[region-isolation] Handle BeginCowMutation.

This commit is contained in:
Michael Gottesman
2024-01-29 17:45:44 -08:00
parent c28ad4eaec
commit b107a18f68
2 changed files with 24 additions and 1 deletions

View File

@@ -192,6 +192,7 @@ static bool isStaticallyLookThroughInst(SILInstruction *inst) {
return false;
case SILInstructionKind::BeginAccessInst:
case SILInstructionKind::BeginBorrowInst:
case SILInstructionKind::BeginCOWMutationInst:
case SILInstructionKind::BeginDeallocRefInst:
case SILInstructionKind::BridgeObjectToRefInst:
case SILInstructionKind::CopyValueInst:
@@ -2306,6 +2307,7 @@ CONSTANT_TRANSLATION(UnownedToRefInst, LookThrough)
CONSTANT_TRANSLATION(UnownedCopyValueInst, LookThrough)
CONSTANT_TRANSLATION(DropDeinitInst, LookThrough)
CONSTANT_TRANSLATION(ValueToBridgeObjectInst, LookThrough)
CONSTANT_TRANSLATION(BeginCOWMutationInst, LookThrough)
//===---
// Store
@@ -2452,7 +2454,6 @@ CONSTANT_TRANSLATION(DeinitExistentialValueInst, Unhandled)
CONSTANT_TRANSLATION(UnconditionalCheckedCastAddrInst, Unhandled)
CONSTANT_TRANSLATION(UncheckedRefCastAddrInst, Unhandled)
CONSTANT_TRANSLATION(PackElementSetInst, Unhandled)
CONSTANT_TRANSLATION(BeginCOWMutationInst, Unhandled)
//===---
// Apply