swift
90182d04 - SILGen: Add missing FormalEvaluationScope when evaluating consumed noncopyable switch subjects.

Commit
53 days ago
SILGen: Add missing FormalEvaluationScope when evaluating consumed noncopyable switch subjects. After #83959, we expect noncopyable OpenExistential evaluations to have an outer FormalEvaluationScope to forward to. However, there was no such FormalEvaluationScope while emitting a consuming switch subject, causing an assertion failure to trip. Add a FormalEvaluationScope tightly scoped around the evaluation in this case, fixing rdar://160080337.
Author
Parents
Loading