mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Clang-importer-synthesized declarations get an extra tag character included in their mangling, which was not being preserved in type context descriptors. This caused runtime lookup for these synthesized types to fail. Fix this by adding the tag information to type context descriptors and teaching the runtime to match it up when fetching metadata by mangled name. Fixes rdar://problem/40878715.
10 lines
157 B
Swift
10 lines
157 B
Swift
import CoreLocation
|
|
|
|
public func getCLError() -> Any.Type {
|
|
return CLError.self
|
|
}
|
|
|
|
public func getCLErrorCode() -> Any.Type {
|
|
return CLError.Code.self
|
|
}
|