Skip to content

Commit b76411d

Browse files
Merge pull request #8606 from adrian-prantl/126713133
Add missing nullptr check
2 parents fa20c15 + d5c56fb commit b76411d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ void lldb_private::formatters::swift::SwiftOptionSetSummaryProvider::
113113
m_type.GetMangledTypeName());
114114
}
115115
}
116+
if (!tss) {
117+
LLDB_LOG(GetLog(LLDBLog::DataFormatters), "No typesystem");
118+
return;
119+
}
116120

117121
auto iter = enum_decl->enumerator_begin(), end = enum_decl->enumerator_end();
118122
for (; iter != end; ++iter) {

0 commit comments

Comments
 (0)