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 {
33
33
// / When successfull, ConcreteExistentialInfo can be used to determine the
34
34
// / concrete type of the opened existential.
35
35
struct OpenedArchetypeInfo {
36
- ArchetypeType *OpenedArchetype = nullptr ;
36
+ OpenedArchetypeType *OpenedArchetype = nullptr ;
37
37
// The opened value.
38
38
SingleValueInstruction *OpenedArchetypeValue;
39
39
// The existential value.
Original file line number Diff line number Diff line change @@ -220,13 +220,13 @@ OpenedArchetypeInfo::OpenedArchetypeInfo(Operand &use) {
220
220
}
221
221
}
222
222
if (auto *Open = dyn_cast<OpenExistentialAddrInst>(openedVal)) {
223
- OpenedArchetype = Open->getType ().castTo <ArchetypeType >();
223
+ OpenedArchetype = Open->getType ().castTo <OpenedArchetypeType >();
224
224
OpenedArchetypeValue = Open;
225
225
ExistentialValue = Open->getOperand ();
226
226
return ;
227
227
}
228
228
if (auto *Open = dyn_cast<OpenExistentialRefInst>(openedVal)) {
229
- OpenedArchetype = Open->getType ().castTo <ArchetypeType >();
229
+ OpenedArchetype = Open->getType ().castTo <OpenedArchetypeType >();
230
230
OpenedArchetypeValue = Open;
231
231
ExistentialValue = Open->getOperand ();
232
232
return ;
@@ -235,7 +235,7 @@ OpenedArchetypeInfo::OpenedArchetypeInfo(Operand &use) {
235
235
auto Ty = Open->getType ().getASTType ();
236
236
while (auto Metatype = dyn_cast<MetatypeType>(Ty))
237
237
Ty = Metatype.getInstanceType ();
238
- OpenedArchetype = cast<ArchetypeType >(Ty);
238
+ OpenedArchetype = cast<OpenedArchetypeType >(Ty);
239
239
OpenedArchetypeValue = Open;
240
240
ExistentialValue = Open->getOperand ();
241
241
}
You can’t perform that action at this time.
0 commit comments