Fix unwind_plan test conditions (could result in NULL memory access).

llvm-svn: 203385
This commit is contained in:
Virgile Bello 2014-03-09 10:01:25 +00:00
parent be6ddab060
commit 2641e383a2
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ RegisterContextLLDB::GetFullUnwindPlanForFrame ()
// We'd prefer to use an UnwindPlan intended for call sites when we're at a call site but if we've
// struck out on that, fall back to using the non-call-site assembly inspection UnwindPlan if possible.
unwind_plan_sp = func_unwinders_sp->GetUnwindPlanAtNonCallSite (m_thread);
if (unwind_plan_sp->GetSourcedFromCompiler() == eLazyBoolNo)
if (unwind_plan_sp && unwind_plan_sp->GetSourcedFromCompiler() == eLazyBoolNo)
{
// We probably have an UnwindPlan created by inspecting assembly instructions, and we probably
// don't have any eh_frame instructions available.