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.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146066 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index d879f19..08a5074 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -2539,7 +2539,7 @@
                 return;
             }
         }
-        else if (target)
+        else if (frame && target)
         {
             var = FindGlobalVariable (*target,
                                       module_sp,