This patch fixes a crash that is happening because of a null pointer
dereference in SBFrame.
StackFrame::GetRegisterContext says explicitly that you might not get
a valid RegisterContext back but the pointer wasn't tested before,
resulting in crashes. This should solve the issue.
rdar://54462095
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
clang-tidy: error: 'lldb/API/SBFrame.h' file not found [clang-diagnostic-error]
not useful