summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-09-22 00:41:11 +0000
committerSean Callanan <scallanan@apple.com>2011-09-22 00:41:11 +0000
commit0886e5657b696b7955111359664834b65fd28b6d (patch)
tree9eb434baf0ebab100627226f9179b3fb037e333b /lldb/source/API/SBValue.cpp
parentfbe52c0192337273220d67af9f9fdb83baa5ec81 (diff)
downloadbcm5719-llvm-0886e5657b696b7955111359664834b65fd28b6d.tar.gz
bcm5719-llvm-0886e5657b696b7955111359664834b65fd28b6d.zip
Fixed a problem with the IR interpreter that caused
it to generate result variables that were not bound to their underlying data. This allowed the SBValue class to use the interpreter (if possible). Also made sure that any result variables that point to stack allocations in the stack frame of the interpreted expressions do not get live data. llvm-svn: 140285
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
-rw-r--r--lldb/source/API/SBValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index f1905856e2a..37a524495e7 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -379,7 +379,7 @@ SBValue::CreateValueFromExpression (const char *name, const char* expression)
ValueObjectSP result_valobj_sp;
m_opaque_sp->GetUpdatePoint().GetTargetSP()->EvaluateExpression (expression,
m_opaque_sp->GetUpdatePoint().GetExecutionContextScope()->CalculateStackFrame(),
- eExecutionPolicyAlways,
+ eExecutionPolicyOnlyWhenNeeded,
true, // unwind on error
true, // keep in memory
eNoDynamicValues,
OpenPOWER on IntegriCloud