@@ -2434,11 +2434,22 @@ CONSTANT_TRANSLATION(CondBranchInst, TerminatorPhi)
2434
2434
CONSTANT_TRANSLATION(CheckedCastBranchInst, TerminatorPhi)
2435
2435
CONSTANT_TRANSLATION(DynamicMethodBranchInst, TerminatorPhi)
2436
2436
2437
+ // ===---
2438
+ // Existential Box
2439
+ //
2440
+
2441
+ // NOTE: Today these can only be used with Errors. Since Error is a sub-protocol
2442
+ // of Sendable, we actually do not have any way to truly test them. These are
2443
+ // just hypothetical assignments so we are complete.
2444
+ CONSTANT_TRANSLATION(AllocExistentialBoxInst, AssignFresh)
2445
+ CONSTANT_TRANSLATION(ProjectExistentialBoxInst, Assign)
2446
+ CONSTANT_TRANSLATION(OpenExistentialBoxValueInst, Assign)
2447
+ CONSTANT_TRANSLATION(DeallocExistentialBoxInst, Ignored)
2448
+
2437
2449
// ===---
2438
2450
// Unhandled Instructions
2439
2451
//
2440
2452
2441
- CONSTANT_TRANSLATION(AllocExistentialBoxInst, Unhandled)
2442
2453
CONSTANT_TRANSLATION(IndexRawPointerInst, Unhandled)
2443
2454
CONSTANT_TRANSLATION(UncheckedTrivialBitCastInst, Unhandled)
2444
2455
CONSTANT_TRANSLATION(UncheckedBitwiseCastInst, Unhandled)
@@ -2460,7 +2471,6 @@ CONSTANT_TRANSLATION(StrongCopyUnmanagedValueInst, Unhandled)
2460
2471
CONSTANT_TRANSLATION(DropDeinitInst, Unhandled)
2461
2472
CONSTANT_TRANSLATION(IsUniqueInst, Unhandled)
2462
2473
CONSTANT_TRANSLATION(LoadUnownedInst, Unhandled)
2463
- CONSTANT_TRANSLATION(ProjectExistentialBoxInst, Unhandled)
2464
2474
CONSTANT_TRANSLATION(ValueMetatypeInst, Unhandled)
2465
2475
CONSTANT_TRANSLATION(ExistentialMetatypeInst, Unhandled)
2466
2476
CONSTANT_TRANSLATION(VectorInst, Unhandled)
@@ -2472,7 +2482,6 @@ CONSTANT_TRANSLATION(InitExistentialValueInst, Unhandled)
2472
2482
CONSTANT_TRANSLATION(InitExistentialMetatypeInst, Unhandled)
2473
2483
CONSTANT_TRANSLATION(OpenExistentialMetatypeInst, Unhandled)
2474
2484
CONSTANT_TRANSLATION(OpenExistentialValueInst, Unhandled)
2475
- CONSTANT_TRANSLATION(OpenExistentialBoxValueInst, Unhandled)
2476
2485
CONSTANT_TRANSLATION(OpenPackElementInst, Unhandled)
2477
2486
CONSTANT_TRANSLATION(PackLengthInst, Unhandled)
2478
2487
CONSTANT_TRANSLATION(DynamicPackIndexInst, Unhandled)
@@ -2494,7 +2503,6 @@ CONSTANT_TRANSLATION(DeallocPackInst, Unhandled)
2494
2503
CONSTANT_TRANSLATION(DeallocStackRefInst, Unhandled)
2495
2504
CONSTANT_TRANSLATION(DeallocRefInst, Unhandled)
2496
2505
CONSTANT_TRANSLATION(DeallocPartialRefInst, Unhandled)
2497
- CONSTANT_TRANSLATION(DeallocExistentialBoxInst, Unhandled)
2498
2506
CONSTANT_TRANSLATION(UnmanagedRetainValueInst, Unhandled)
2499
2507
CONSTANT_TRANSLATION(UnmanagedReleaseValueInst, Unhandled)
2500
2508
CONSTANT_TRANSLATION(UnmanagedAutoreleaseValueInst, Unhandled)
0 commit comments