Skip to content

Commit a079f61

Browse files
committed
[LLDB] Add a defensive check for member__f_
I only have a crash log and was not able to come up with a test case for this. rdar://problem/69403150
1 parent c8df781 commit a079f61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo(
154154
member__f_ = sub_member__f_;
155155
}
156156

157+
if (!member__f_)
158+
return optional_info;
159+
157160
lldb::addr_t member__f_pointer_value = member__f_->GetValueAsUnsigned(0);
158161

159162
optional_info.member__f_pointer_value = member__f_pointer_value;

0 commit comments

Comments
 (0)