Skip to content

Commit 91ffa10

Browse files
committed
Add missing nullptr check
1 parent b7eb4a2 commit 91ffa10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,6 +3271,8 @@ class SwiftDWARFImporterDelegate : public swift::DWARFImporterDelegate {
32713271
for (size_t i = 0; i != images.GetSize(); ++i) {
32723272
auto module_sp = images.GetModuleAtIndex(i);
32733273
auto *swift_ast_ctx = GetModuleSwiftASTContext(*module_sp);
3274+
if (!swift_ast_ctx)
3275+
continue;
32743276
auto *dwarf_imp = static_cast<SwiftDWARFImporterDelegate *>(
32753277
swift_ast_ctx->GetDWARFImporterDelegate());
32763278
if (!dwarf_imp || dwarf_imp == this)

0 commit comments

Comments
 (0)