Skip to content

Commit a63a74c

Browse files
committed
combine conditions
1 parent 0c87c26 commit a63a74c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,9 +2306,7 @@ 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;
2311-
return ContainsGenericTypeParameter(node);
2309+
return ContainsGenericTypeParameter(node) && !IsFunctionType(type, nullptr);
23122310
};
23132311
VALIDATE_AND_RETURN(impl, IsMeaninglessWithoutDynamicResolution, type,
23142312
(ReconstructType(type)));

0 commit comments

Comments
 (0)