Files
swift-mirror/test/SILGen/Inputs/keypaths_import_as_member.h
Joe Groff e5b0ffc2df SILGen: Use the original function address as the ID for key paths to import-as-member properties.
If an import-as-member property was used in a key path, we'd try to identify the component by its
foreign-to-native thunk, which isn't normally generated (causing a crash from the missing symbol)
and wouldn't be globally unique even if it were. Fixes rdar://problem/60519829.
2020-04-03 14:08:24 -07:00

6 lines
128 B
C

typedef struct Butt { } Butt;
extern int ButtSize(const Butt *butt)
__attribute__((swift_name("getter:Butt.size(self:)")));