Skip to content

Commit 0c87c26

Browse files
committed
check IsFunctionType
1 parent 3f2504a commit 0c87c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,6 +2306,8 @@ bool TypeSystemSwiftTypeRef::IsMeaninglessWithoutDynamicResolution(
23062306
using namespace swift::Demangle;
23072307
Demangler dem;
23082308
auto *node = DemangleCanonicalType(dem, type);
2309+
if (IsFunctionType(type, nullptr))
2310+
return false;
23092311
return ContainsGenericTypeParameter(node);
23102312
};
23112313
VALIDATE_AND_RETURN(impl, IsMeaninglessWithoutDynamicResolution, type,

0 commit comments

Comments
 (0)