Skip to content

Commit 08b2ba0

Browse files
authored
Merge pull request #23167 from theblixguy/chore/remove-useless-null-check
2 parents 68cb52a + 52b833d commit 08b2ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3909,7 +3909,7 @@ CheckedCastKind TypeChecker::typeCheckCheckedCast(Type fromType,
39093909
auto toConstrainedArchetype = false;
39103910
if (toArchetypeType) {
39113911
auto archetype = toType->castTo<ArchetypeType>();
3912-
toConstrainedArchetype = archetype && !archetype->getConformsTo().empty();
3912+
toConstrainedArchetype = !archetype->getConformsTo().empty();
39133913
}
39143914

39153915
if (fromFunctionType &&

0 commit comments

Comments
 (0)