Skip to content

Commit 440ffe1

Browse files
committed
IRGen: Remove unnecessary hasInterfaceType() check
1 parent ef57355 commit 440ffe1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IRGen/GenClangType.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ static CanType getNamedSwiftType(ModuleDecl *stdlib, StringRef name) {
6464
// that's a real thing.
6565
if (results.size() == 1) {
6666
if (auto typeDecl = dyn_cast<TypeDecl>(results[0]))
67-
if (typeDecl->hasInterfaceType())
68-
return typeDecl->getDeclaredInterfaceType()->getCanonicalType();
67+
return typeDecl->getDeclaredInterfaceType()->getCanonicalType();
6968
}
7069
return CanType();
7170
}

0 commit comments

Comments
 (0)