Skip to content

Commit 0ffca9d

Browse files
committed
Add missing nullptr check.
rdar://105869420
1 parent d8093c5 commit 0ffca9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/Language/Swift/SwiftFormatters.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,8 @@ bool lldb_private::formatters::swift::SIMDVector_SummaryProvider(
11291129
uint64_t type_size = *opt_type_size;
11301130

11311131
::swift::TypeBase *swift_type = GetSwiftType(simd_type).getPointer();
1132+
if (!swift_type)
1133+
return false;
11321134
auto bound_type = dyn_cast<::swift::BoundGenericType>(swift_type);
11331135
if (!bound_type)
11341136
return false;

0 commit comments

Comments
 (0)