Skip to content

Commit 21d1b51

Browse files
authored
[lldb] Handle unsupported type in GetPointerType (#4954)
1 parent 7894920 commit 21d1b51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,6 +2431,9 @@ TypeSystemSwiftTypeRef::GetPointerType(opaque_compiler_type_t type) {
24312431

24322432
// The type that will be wrapped in UnsafePointer.
24332433
auto *pointee_type = GetDemangledType(dem, AsMangledName(type));
2434+
if (!pointee_type)
2435+
return {};
2436+
24342437
// The UnsafePointer type.
24352438
auto *pointer_type = dem.createNode(Node::Kind::Type);
24362439

0 commit comments

Comments
 (0)