Skip to content

Commit 49187be

Browse files
committed
Add missing nullptr check
1 parent 40911cc commit 49187be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserSwiftDescriptorFinder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ class DWARFFieldDescriptorImpl : public swift::reflection::FieldDescriptorBase {
219219
const auto *member_field_name =
220220
child_die.GetAttributeValueAsString(llvm::dwarf::DW_AT_name, "");
221221
auto *member_type = dwarf_parser->GetTypeForDIE(child_die);
222+
if (!member_type)
223+
continue;
222224
auto member_mangled_typename =
223225
member_type->GetForwardCompilerType().GetMangledTypeName();
224226

lldb/test/API/lang/swift/embedded/nested_frame_variable/TestSwiftEmbeddedNestedFrameVariable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ def implementation(self):
3131
s4 = frame.FindVariable("s4")
3232
t = s4.GetChildMemberWithName("t")
3333
lldbutil.check_variable(self, t, False, value='839')
34-

0 commit comments

Comments
 (0)