@@ -2659,6 +2659,13 @@ class PartitionOpTranslator {
26592659 return translateSILBuiltin (bi);
26602660 }
26612661
2662+ if (auto *eai = dyn_cast<EndApplyInst>(inst)) {
2663+ // FIXME: This might not be not entirely correct.
2664+ auto *bai = eai->getBeginApply ();
2665+ return translateSILMultiAssign (eai->getResults (),
2666+ makeOperandRefRange (bai->getAllOperands ()));
2667+ }
2668+
26622669 auto fas = FullApplySite::isa (inst);
26632670 assert (bool (fas) && " Builtins should be handled above" );
26642671
@@ -3509,7 +3516,6 @@ CONSTANT_TRANSLATION(EndUnpairedAccessInst, Ignored)
35093516CONSTANT_TRANSLATION(HopToExecutorInst, Ignored)
35103517CONSTANT_TRANSLATION(InjectEnumAddrInst, Ignored)
35113518CONSTANT_TRANSLATION(DestroyNotEscapedClosureInst, Ignored)
3512- CONSTANT_TRANSLATION(EndApplyInst, Ignored)
35133519CONSTANT_TRANSLATION(AbortApplyInst, Ignored)
35143520CONSTANT_TRANSLATION(DebugStepInst, Ignored)
35153521CONSTANT_TRANSLATION(IncrementProfilerCounterInst, Ignored)
@@ -3632,6 +3638,7 @@ CONSTANT_TRANSLATION(ApplyInst, Apply)
36323638CONSTANT_TRANSLATION(BeginApplyInst, Apply)
36333639CONSTANT_TRANSLATION(BuiltinInst, Apply)
36343640CONSTANT_TRANSLATION(TryApplyInst, Apply)
3641+ CONSTANT_TRANSLATION(EndApplyInst, Apply)
36353642
36363643// ===---
36373644// Asserting
0 commit comments