swift icon indicating copy to clipboard operation
swift copied to clipboard

[ConstraintSystem] Use `findSelectedOverloadFor` in `isArgumentGeneri…

Open xedin opened this issue 8 months ago • 2 comments

…cFunction`

Fixes a crash when existing logic cannot properly determine whether argument is resolved or not.

Instead of ad-hoc code that checks ResolvedOverloads directly, let's use a method that would reach of a callee locator to determine whether argument is a reference to a generic function or not.

Resolves: rdar://137825558

xedin avatar Mar 28 '25 07:03 xedin

@swift-ci please test

xedin avatar Mar 28 '25 07:03 xedin

@swift-ci please test Windows platform

xedin avatar Mar 28 '25 17:03 xedin