Skip to content

Commit e5c5ec5

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

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
@@ -1680,8 +1680,7 @@ static SelfTypeKind getSelfTypeKind(DeclContext *dc,
16801680
return SelfTypeKind::StaticSelf;
16811681

16821682
// For foreign reference types `Self` is a shorthand for the nominal type.
1683-
if (typeDC->getSelfClassDecl() &&
1684-
typeDC->getSelfClassDecl()->isForeignReferenceType())
1683+
if (typeDC->getSelfClassDecl()->isForeignReferenceType())
16851684
return SelfTypeKind::StaticSelf;
16861685

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

0 commit comments

Comments
 (0)