mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes a crash in SILGen when calling a C++ subscript that has an unnamed parameter from Swift. The parameters from a C++ `operator[]` get carried over to the synthesized Swift subscript. If the Swift parameter has no name, there is no way to refer to it in SIL. However, the synthesized subscript accessor needs to pass this parameter to C++. This change makes sure that we give a name to the Swift parameter if there isn't already a name on the C++ side. rdar://83163841
98 KiB
98 KiB