mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Add ASTContext::TheSelfType for convenience
This commit is contained in:
@@ -783,7 +783,7 @@ emitKeyPathComponent(IRGenModule &IGM,
|
||||
if (auto *openedExistential =
|
||||
t->getAs<ExistentialArchetypeType>()) {
|
||||
auto &ctx = openedExistential->getASTContext();
|
||||
return GenericTypeParamType::getType(0, 0, ctx);
|
||||
return ctx.TheSelfType;
|
||||
}
|
||||
return std::nullopt;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user