swift
b6cee3fc - DI: Fix transformation of value_metatype inside convenience init in Swift 5 mode

Commit
7 years ago
DI: Fix transformation of value_metatype inside convenience init in Swift 5 mode In Swift 5 mode, 'self' in a convenience init has a DynamicSelfType, so the value_metatype instruction returns a DynamicSelfType metatype. However, the metatype argument to the constructor is a plain class metatype because it's an interface type, so we have to "open" it by bitcasting it to a DynamicSelfType. Fixes <https://bugs.swift.org/browse/SR-9430>, <rdar://problem/46982573>.
Author
Committer
Parents
Loading