Skip to content

Commit 284c573

Browse files
Xazax-hunAnthonyLatsis
authored andcommitted
Update lib/Sema/TypeCheckType.cpp
Co-authored-by: Anthony Latsis <[email protected]>
1 parent 133d09d commit 284c573

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,7 @@ static SelfTypeKind getSelfTypeKind(DeclContext *dc,
16931693
return SelfTypeKind::StaticSelf;
16941694

16951695
// For foreign reference types `Self` is a shorthand for the nominal type.
1696-
if (typeDC->getSelfClassDecl() &&
1697-
typeDC->getSelfClassDecl()->isForeignReferenceType())
1696+
if (typeDC->getSelfClassDecl()->isForeignReferenceType())
16981697
return SelfTypeKind::StaticSelf;
16991698

17001699
// In class methods, 'Self' is the DynamicSelfType and can only appear in

0 commit comments

Comments
 (0)