@@ -209,8 +209,10 @@ static bool isStaticallyLookThroughInst(SILInstruction *inst) {
209
209
case SILInstructionKind::ProjectBlockStorageInst:
210
210
case SILInstructionKind::ProjectBoxInst:
211
211
case SILInstructionKind::RefToBridgeObjectInst:
212
+ case SILInstructionKind::RefToUnownedInst:
212
213
case SILInstructionKind::UncheckedRefCastInst:
213
214
case SILInstructionKind::UncheckedTakeEnumDataAddrInst:
215
+ case SILInstructionKind::UnownedToRefInst:
214
216
case SILInstructionKind::UpcastInst:
215
217
return true ;
216
218
}
@@ -2052,6 +2054,8 @@ CONSTANT_TRANSLATION(MarkUninitializedInst, LookThrough)
2052
2054
CONSTANT_TRANSLATION(DestructureTupleInst, LookThrough)
2053
2055
CONSTANT_TRANSLATION(DestructureStructInst, LookThrough)
2054
2056
CONSTANT_TRANSLATION(ProjectBlockStorageInst, LookThrough)
2057
+ CONSTANT_TRANSLATION(RefToUnownedInst, LookThrough)
2058
+ CONSTANT_TRANSLATION(UnownedToRefInst, LookThrough)
2055
2059
2056
2060
// ===---
2057
2061
// Store
@@ -2138,8 +2142,6 @@ CONSTANT_TRANSLATION(DeallocExistentialBoxInst, Ignored)
2138
2142
// Unhandled Instructions
2139
2143
//
2140
2144
2141
- CONSTANT_TRANSLATION(RefToUnownedInst, Unhandled)
2142
- CONSTANT_TRANSLATION(UnownedToRefInst, Unhandled)
2143
2145
CONSTANT_TRANSLATION(BridgeObjectToWordInst, Unhandled)
2144
2146
CONSTANT_TRANSLATION(ObjCToThickMetatypeInst, Unhandled)
2145
2147
CONSTANT_TRANSLATION(ObjCMetatypeToObjectInst, Unhandled)
0 commit comments