Skip to content

Commit 3f2504a

Browse files
committed
[lldb] Implement TypeSystemSwiftTypeRef::IsMeaninglessWithoutDynamicResolution
1 parent 1c5f82b commit 3f2504a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,8 +2302,14 @@ TypeSystemSwiftTypeRef::ShouldPrintAsOneLiner(opaque_compiler_type_t type,
23022302
}
23032303
bool TypeSystemSwiftTypeRef::IsMeaninglessWithoutDynamicResolution(
23042304
opaque_compiler_type_t type) {
2305-
return m_swift_ast_context->IsMeaninglessWithoutDynamicResolution(
2306-
ReconstructType(type));
2305+
auto impl = [&]() {
2306+
using namespace swift::Demangle;
2307+
Demangler dem;
2308+
auto *node = DemangleCanonicalType(dem, type);
2309+
return ContainsGenericTypeParameter(node);
2310+
};
2311+
VALIDATE_AND_RETURN(impl, IsMeaninglessWithoutDynamicResolution, type,
2312+
(ReconstructType(type)));
23072313
}
23082314

23092315
CompilerType TypeSystemSwiftTypeRef::GetAsClangTypeOrNull(

0 commit comments

Comments
 (0)