Skip to content

Commit

Permalink
[LLDB] Add a defensive check for member__f_
Browse files Browse the repository at this point in the history
I only have a crash log and was not able to come up with a test case for this.

rdar://problem/69403150
  • Loading branch information
shafik committed Sep 24, 2020
1 parent c8df781 commit a079f61
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo(
member__f_ = sub_member__f_;
}

if (!member__f_)
return optional_info;

lldb::addr_t member__f_pointer_value = member__f_->GetValueAsUnsigned(0);

optional_info.member__f_pointer_value = member__f_pointer_value;
Expand Down

0 comments on commit a079f61

Please sign in to comment.