Skip to content

Commit 081bdb2

Browse files
committed
Strange fix for swift-corelibs-foundation build
1 parent 3a070b6 commit 081bdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ Type TypeResolver::resolveType(TypeRepr *repr, TypeResolutionOptions options) {
17151715
if (!(options & TR_SILType)) {
17161716
// Default non-escaping for closure parameters
17171717
auto result = resolveASTFunctionType(cast<FunctionTypeRepr>(repr), options);
1718-
if (result->is<FunctionType>())
1718+
if (result && result->is<FunctionType>())
17191719
return adjustFunctionExtInfo(DC, result, options);
17201720
return result;
17211721
}

0 commit comments

Comments
 (0)