mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
DI: Add non-working code for handling value_metatype when used on an address-only type
This commit is contained in:
@@ -1409,6 +1409,10 @@ collectDelegatingInitUses(const DIMemoryObjectInfo &TheMemory,
|
||||
Kind = DIUseKind::LoadForTypeOfSelf;
|
||||
}
|
||||
}
|
||||
// value_metatype may also use the 'self' value directly, if it has an
|
||||
// address-only type.
|
||||
if (isa<ValueMetatypeInst>(User))
|
||||
Kind = DIUseKind::TypeOfSelf;
|
||||
|
||||
// We can safely handle anything else as an escape. They should all happen
|
||||
// after self.init is invoked.
|
||||
|
||||
Reference in New Issue
Block a user