Skip to content

Commit f7e500c

Browse files
committed
[lldb] Implement TypeSystemSwiftTypeRef::GetFullyUnqualifiedType
1 parent 08e5663 commit f7e500c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3549,9 +3549,11 @@ TypeSystemSwiftTypeRef::GetTypedefedType(opaque_compiler_type_t type) {
35493549

35503550
CompilerType
35513551
TypeSystemSwiftTypeRef::GetFullyUnqualifiedType(opaque_compiler_type_t type) {
3552-
if (auto *swift_ast_context = GetSwiftASTContext())
3553-
return swift_ast_context->GetFullyUnqualifiedType(ReconstructType(type));
3554-
return {};
3552+
LLDB_SCOPED_TIMER();
3553+
auto impl = [&]() -> CompilerType { return {this, type}; };
3554+
3555+
VALIDATE_AND_RETURN(impl, GetFullyUnqualifiedType, type,
3556+
(ReconstructType(type)), (ReconstructType(type)));
35553557
}
35563558
uint32_t
35573559
TypeSystemSwiftTypeRef::GetNumDirectBaseClasses(opaque_compiler_type_t type) {

0 commit comments

Comments
 (0)