mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
It needs to return nil in case the callee argument is not really applied by the ApplySite. This fixes a crash in EscapeInfo when handling "escaping-to" effects: If the callee operand of an apply instruction is a `partial_apply` of a `function_ref`, the callee-analysis looks through the `partial_apply` and we get the referenced function as a callee. In this case there are less apply arguments than callee arguments, because the `partial_apply` already "applies" some of the callee arguments. rdar://96830171