forked from OSchip/llvm-project
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:
parent
4f864b78e6
commit
ae6d614118
|
@ -2539,7 +2539,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
|
|||
return;
|
||||
}
|
||||
}
|
||||
else if (target)
|
||||
else if (frame && target)
|
||||
{
|
||||
var = FindGlobalVariable (*target,
|
||||
module_sp,
|
||||
|
|
Loading…
Reference in New Issue