forked from OSchip/llvm-project
Fixed a crash when incomplete expression variables
are materialized. <rdar://problem/12105013> llvm-svn: 162046
This commit is contained in:
parent
350a17b7ce
commit
aa01b83078
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue