Skip to content

Commit 9b6a93a

Browse files
Merge pull request #3646 from adrian-prantl/nullptrcheck2
Add missing nullptr check
2 parents cca8345 + 6b652be commit 9b6a93a

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
@@ -3295,6 +3295,8 @@ class SwiftDWARFImporterDelegate : public swift::DWARFImporterDelegate {
32953295
for (size_t i = 0; i != images.GetSize(); ++i) {
32963296
auto module_sp = images.GetModuleAtIndex(i);
32973297
auto *swift_ast_ctx = GetModuleSwiftASTContext(*module_sp);
3298+
if (!swift_ast_ctx)
3299+
continue;
32983300
auto *dwarf_imp = static_cast<SwiftDWARFImporterDelegate *>(
32993301
swift_ast_ctx->GetDWARFImporterDelegate());
33003302
if (!dwarf_imp || dwarf_imp == this)

0 commit comments

Comments
 (0)