Fixed a crash when incomplete expression variables

are materialized.

<rdar://problem/12105013>

llvm-svn: 162046
This commit is contained in:
Sean Callanan 2012-08-16 21:34:44 +00:00
parent 350a17b7ce
commit aa01b83078
1 changed files with 6 additions and 0 deletions

View File

@ -1501,6 +1501,12 @@ ClangExpressionDeclMap::DoMaterialize
if (m_found_entities.ContainsVariable (member_sp))
{
if (!member_sp->GetValueObject())
{
err.SetErrorString("Variable being materialized doesn't have a frozen version");
return false;
}
RegisterInfo *reg_info = member_sp->GetRegisterInfo ();
if (reg_info)
{