File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ namespace swift {
3333// / When successfull, ConcreteExistentialInfo can be used to determine the
3434// / concrete type of the opened existential.
3535struct OpenedArchetypeInfo {
36- ArchetypeType *OpenedArchetype = nullptr ;
36+ OpenedArchetypeType *OpenedArchetype = nullptr ;
3737 // The opened value.
3838 SingleValueInstruction *OpenedArchetypeValue;
3939 // The existential value.
Original file line number Diff line number Diff line change @@ -220,13 +220,13 @@ OpenedArchetypeInfo::OpenedArchetypeInfo(Operand &use) {
220220 }
221221 }
222222 if (auto *Open = dyn_cast<OpenExistentialAddrInst>(openedVal)) {
223- OpenedArchetype = Open->getType ().castTo <ArchetypeType >();
223+ OpenedArchetype = Open->getType ().castTo <OpenedArchetypeType >();
224224 OpenedArchetypeValue = Open;
225225 ExistentialValue = Open->getOperand ();
226226 return ;
227227 }
228228 if (auto *Open = dyn_cast<OpenExistentialRefInst>(openedVal)) {
229- OpenedArchetype = Open->getType ().castTo <ArchetypeType >();
229+ OpenedArchetype = Open->getType ().castTo <OpenedArchetypeType >();
230230 OpenedArchetypeValue = Open;
231231 ExistentialValue = Open->getOperand ();
232232 return ;
@@ -235,7 +235,7 @@ OpenedArchetypeInfo::OpenedArchetypeInfo(Operand &use) {
235235 auto Ty = Open->getType ().getASTType ();
236236 while (auto Metatype = dyn_cast<MetatypeType>(Ty))
237237 Ty = Metatype.getInstanceType ();
238- OpenedArchetype = cast<ArchetypeType >(Ty);
238+ OpenedArchetype = cast<OpenedArchetypeType >(Ty);
239239 OpenedArchetypeValue = Open;
240240 ExistentialValue = Open->getOperand ();
241241 }
You can’t perform that action at this time.
0 commit comments