summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-12-06 01:35:38 +0000
committerSean Callanan <scallanan@apple.com>2012-12-06 01:35:38 +0000
commiteab6cc98d7813e3145c8f67958411f9aa996ac81 (patch)
tree245487b60f27ba487555caa602de065bb4afac5f /lldb/source/Expression/ClangUserExpression.cpp
parent9f5c68af4cad5da1212aef1d04069364d0e3c49f (diff)
downloadbcm5719-llvm-eab6cc98d7813e3145c8f67958411f9aa996ac81.tar.gz
bcm5719-llvm-eab6cc98d7813e3145c8f67958411f9aa996ac81.zip
The expression parser will now check the validity
of the "self"/"this" pointer for the current stack frame before wrapping expressions in C++ or Objective-C methods. This works around bad debug info where the compiler emits a "this" or "self" but doesn't give any way to find its location. <rdar://problem/12809985> llvm-svn: 169461
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-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 231432d29e0..13b7b0edfbf 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -58,7 +58,7 @@ ClangUserExpression::ClangUserExpression (const char *expr,
m_language (language),
m_transformed_text (),
m_desired_type (desired_type),
- m_enforce_valid_object (false),
+ m_enforce_valid_object (true),
m_cplusplus (false),
m_objectivec (false),
m_static_method(false),
OpenPOWER on IntegriCloud