commit | cb2c77ea5aeb8e716e96657ca20b2e4f99f8b69b | [log] [tgz] |
---|---|---|
author | Sean Callanan <scallanan@apple.com> | Wed Dec 07 20:41:47 2011 +0000 |
committer | Sean Callanan <scallanan@apple.com> | Wed Dec 07 20:41:47 2011 +0000 |
tree | f40cec704419075bde9722fa23e6dddb96e016b3 | |
parent | 9f5c6144951d64a3c8af36df2358dcb867445615 [diff] [blame] |
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,