Skip to content

Commit 00a5ff7

Browse files
authored
Merge pull request #3603 from augusto2112/tss-typeref-unqualified-type
[lldb] Implement TypeSystemSwiftTypeRef::GetFullyUnqualifiedType
2 parents 45a3cc1 + f7e500c commit 00a5ff7

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
@@ -3544,9 +3544,11 @@ TypeSystemSwiftTypeRef::GetTypedefedType(opaque_compiler_type_t type) {
35443544

35453545
CompilerType
35463546
TypeSystemSwiftTypeRef::GetFullyUnqualifiedType(opaque_compiler_type_t type) {
3547-
if (auto *swift_ast_context = GetSwiftASTContext())
3548-
return swift_ast_context->GetFullyUnqualifiedType(ReconstructType(type));
3549-
return {};
3547+
LLDB_SCOPED_TIMER();
3548+
auto impl = [&]() -> CompilerType { return {this, type}; };
3549+
3550+
VALIDATE_AND_RETURN(impl, GetFullyUnqualifiedType, type,
3551+
(ReconstructType(type)), (ReconstructType(type)));
35503552
}
35513553
uint32_t
35523554
TypeSystemSwiftTypeRef::GetNumDirectBaseClasses(opaque_compiler_type_t type) {

0 commit comments

Comments
 (0)