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:
Greg Clayton
2013-12-10 23:16:40 +00:00
parent adcdde013a
commit eeb15653c6
2 changed files with 5 additions and 2 deletions

View File

@@ -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;
}