Skip to content

Commit a60e688

Browse files
Merge pull request #8595 from adrian-prantl/126428030
Add missing nullptr check
2 parents 3ff1465 + 6e266f0 commit a60e688

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
@@ -1178,6 +1178,8 @@ bool lldb_private::formatters::swift::SIMDVector_SummaryProvider(
11781178
return false;
11791179

11801180
auto synthetic = simd_elem->GetSyntheticValue();
1181+
if (!synthetic)
1182+
return false;
11811183
const char *value_string = synthetic->GetValueAsCString();
11821184
elem_vector.push_back(value_string);
11831185
}

0 commit comments

Comments
 (0)