mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGen: Remove usage of getDeclaredTypeOfContext()
This commit is contained in:
@@ -354,12 +354,11 @@ void SILGenFunction::emitValueConstructor(ConstructorDecl *ctor) {
|
||||
}
|
||||
|
||||
void SILGenFunction::emitEnumConstructor(EnumElementDecl *element) {
|
||||
CanType enumTy = element->getParentEnum()
|
||||
->getDeclaredTypeInContext()
|
||||
->getCanonicalType();
|
||||
CanType enumIfaceTy = element->getParentEnum()
|
||||
->getDeclaredInterfaceType()
|
||||
->getCanonicalType();
|
||||
CanType enumTy = F.mapTypeIntoContext(enumIfaceTy)
|
||||
->getCanonicalType();
|
||||
auto &enumTI = getTypeLowering(enumTy);
|
||||
|
||||
RegularLocation Loc(element);
|
||||
|
||||
Reference in New Issue
Block a user