Skip to content

Commit 92251f5

Browse files
committed
[lldb] Implement GetPointeeType
1 parent 88b7f32 commit 92251f5

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
@@ -2274,12 +2274,14 @@ TypeSystemSwiftTypeRef::GetMemberFunctionAtIndex(opaque_compiler_type_t type,
22742274
idx);
22752275
return {};
22762276
}
2277+
22772278
CompilerType
22782279
TypeSystemSwiftTypeRef::GetPointeeType(opaque_compiler_type_t type) {
2279-
if (auto *swift_ast_context = GetSwiftASTContext())
2280-
return swift_ast_context->GetPointeeType(ReconstructType(type));
2281-
return {};
2280+
auto impl = []() { return CompilerType(); };
2281+
VALIDATE_AND_RETURN(impl, GetPointeeType, type,
2282+
(ReconstructType(type)), (ReconstructType(type)));
22822283
}
2284+
22832285
CompilerType
22842286
TypeSystemSwiftTypeRef::GetPointerType(opaque_compiler_type_t type) {
22852287
auto impl = [&]() -> CompilerType {

0 commit comments

Comments
 (0)