Skip to content

Commit 8ccd658

Browse files
committed
[IDE] NFC: Remove redundant use of getInnermostDeclContext
An extension decl is its own inner DeclContext.
1 parent 02d2b4a commit 8ccd658

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IDE/IDETypeChecking.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ struct SynthesizedExtensionAnalyzer::Implementation {
327327
auto handleRequirements = [&](SubstitutionMap subMap,
328328
ExtensionDecl *OwningExt,
329329
ArrayRef<Requirement> Reqs) {
330-
ProtocolDecl *BaseProto = OwningExt->getInnermostDeclContext()
331-
->getSelfProtocolDecl();
330+
ProtocolDecl *BaseProto = OwningExt->getSelfProtocolDecl();
332331
for (auto Req : Reqs) {
333332
// Skip protocol's Self : <Protocol> requirement.
334333
if (BaseProto &&

0 commit comments

Comments
 (0)