Fixed a potential crasher if the frame is not

avalable when a global variable is looked up.
In ClangExpressionDeclMap, a frame should usually
be available.

llvm-svn: 146066
This commit is contained in:
Sean Callanan 2011-12-07 20:41:47 +00:00
parent 4f864b78e6
commit ae6d614118
1 changed files with 1 additions and 1 deletions

View File

@ -2539,7 +2539,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
return;
}
}
else if (target)
else if (frame && target)
{
var = FindGlobalVariable (*target,
module_sp,