diff options
author | Sean Callanan <scallanan@apple.com> | 2011-12-07 20:41:47 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-12-07 20:41:47 +0000 |
commit | ae6d614118dbee5710ef1665d76eae9c260900cd (patch) | |
tree | 9c863484a759e9a4b252caad9fcf8ce14427d072 /lldb/source/Expression/ClangExpressionDeclMap.cpp | |
parent | 4f864b78e6a30207201e19a4b2df4b59c736b6cd (diff) | |
download | bcm5719-llvm-ae6d614118dbee5710ef1665d76eae9c260900cd.tar.gz bcm5719-llvm-ae6d614118dbee5710ef1665d76eae9c260900cd.zip |
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
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r-- | lldb/source/Expression/ClangExpressionDeclMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp index d879f19985a..08a507490fb 100644 --- a/lldb/source/Expression/ClangExpressionDeclMap.cpp +++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp @@ -2539,7 +2539,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context, return; } } - else if (target) + else if (frame && target) { var = FindGlobalVariable (*target, module_sp, |