Files
swift-mirror/lib/IRGen/GenHeap.h
Joe Groff 94a3eaa1ab IRGen: Use swift_getObjectType to get the type(of:) mixed classes.
A Swift subclass of an ObjC class can be dynamically subclassed, but `type(of:)` shouldn't return the artificial subclass, since that's not what -class does for ObjC classes, and people expect `Bundle(for: type(of: c))` to work like `[NSBundle bundleForClass: [c class]]` would in ObjC. Fixes rdar://problem/37319860.
2018-05-31 12:56:27 -07:00

6.9 KiB