mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Currently the note is going to point to the "callee" but that is
incorrect when the failure is related to an argument of a call.
Detect this situation in `RValueTreatedAsLValueFailure::diagnoseAsNote`
and produce a correct note.
Resolves: rdar://150689994
(cherry picked from commit 6bbc101a98)
324 KiB
324 KiB