summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-07-13 21:20:29 +0000
committerSean Callanan <scallanan@apple.com>2012-07-13 21:20:29 +0000
commit5dd6c3dfccf9f88352cf2c7748f3e210b0ba89d2 (patch)
treecb5604ee981fc7b335dbfad526fd057d8c8839f3 /lldb/source
parent58c470dc6861d80130d81a196ebfaa76fa128573 (diff)
downloadbcm5719-llvm-5dd6c3dfccf9f88352cf2c7748f3e210b0ba89d2.tar.gz
bcm5719-llvm-5dd6c3dfccf9f88352cf2c7748f3e210b0ba89d2.zip
Be a little more safe when checking whether the
current symbol context is a C++ or Objective-C instance method. Specifically, ensure that we fetch information on the current block, not just the current function. llvm-svn: 160195
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index 838088084d6..4c64db372c1 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -110,7 +110,7 @@ ClangUserExpression::ScanContext(ExecutionContext &exe_ctx, Error &err)
if (frame == NULL)
return;
- SymbolContext sym_ctx = frame->GetSymbolContext(lldb::eSymbolContextFunction);
+ SymbolContext sym_ctx = frame->GetSymbolContext(lldb::eSymbolContextFunction | lldb::eSymbolContextBlock);
if (!sym_ctx.function)
return;
OpenPOWER on IntegriCloud