File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,8 @@ ProtocolDecl *DeclContext::getAsProtocolExtensionContext() const {
91
91
GenericTypeParamType *DeclContext::getProtocolSelfType () const {
92
92
assert (getAsProtocolOrProtocolExtensionContext () && " not a protocol" );
93
93
94
- auto genericParams = getGenericParamsOfContext ();
95
-
96
- if (!genericParams) {
97
- if (auto proto = dyn_cast<ProtocolDecl>(this )) {
98
- getASTContext ().getLazyResolver ()
99
- ->resolveDeclSignature (const_cast <ProtocolDecl *>(proto));
100
- genericParams = getGenericParamsOfContext ();
101
- }
94
+ if (auto proto = dyn_cast<ProtocolDecl>(this )) {
95
+ const_cast <ProtocolDecl *>(proto)->createGenericParamsIfMissing ();
102
96
}
103
97
104
98
return getGenericParamsOfContext ()->getParams ().front ()
You can’t perform that action at this time.
0 commit comments