forked from OSchip/llvm-project
Fix the test suite after the changes made in revision 196616 exposed issues in the test suite.
We must make sure that all ValueObject objects always contain a valid target. llvm-svn: 196983
This commit is contained in:
parent
adcdde013a
commit
eeb15653c6
|
@ -3516,7 +3516,8 @@ ValueObject::CreateConstantValue (const ConstString &name)
|
|||
|
||||
if (!valobj_sp)
|
||||
{
|
||||
valobj_sp = ValueObjectConstResult::Create (NULL, m_error);
|
||||
ExecutionContext exe_ctx (GetExecutionContextRef());
|
||||
valobj_sp = ValueObjectConstResult::Create (exe_ctx.GetBestExecutionContextScope(), m_error);
|
||||
}
|
||||
return valobj_sp;
|
||||
}
|
||||
|
|
|
@ -1024,7 +1024,9 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
|
|||
}
|
||||
|
||||
if (result_valobj_sp.get() == NULL)
|
||||
result_valobj_sp = ValueObjectConstResult::Create (NULL, error);
|
||||
{
|
||||
result_valobj_sp = ValueObjectConstResult::Create (exe_ctx.GetBestExecutionContextScope(), error);
|
||||
}
|
||||
|
||||
return execution_results;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue