Commits
Joe Groff committed 3dda4c9cf50
SILGen: Reference ObjC initializers and factories through foreign-to-native thunks. Eliminate the duplicate half-broken bridging logic in emitClassConstructorAllocator by referencing foreign initializers through their foreign-to-native thunks, which SILGen knows how to emit already. Do the same thing for factory initializers by suppressing their normal allocating initializer codegen and just referencing the usual foreign-to-native thunk for them. This fixes <rdar://problem/16853205> because we get the ownership thunking right now. Swift SVN r17840