mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Fix emission of optional dynamic self type when bound to a generic argument
Fixes <rdar://problem/21081782>. Swift SVN r30743
This commit is contained in:
@@ -449,7 +449,7 @@ TypeMetadataAccessStrategy irgen::getTypeMetadataAccessStrategy(CanType type) {
|
||||
return TypeMetadataAccessStrategy::Direct;
|
||||
|
||||
// DynamicSelfType is actually local.
|
||||
if (isa<DynamicSelfType>(type))
|
||||
if (type->hasDynamicSelfType())
|
||||
return TypeMetadataAccessStrategy::Direct;
|
||||
|
||||
// The zero-element tuple has special metadata in the runtime.
|
||||
|
||||
Reference in New Issue
Block a user