summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-01-06 00:35:38 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-01-06 00:35:38 +0000
commitb49440fa92c1cbdea3736acdb0882275c1ab0748 (patch)
tree22007b6093b709b6d1472b35a086bd728db4c75a /lldb/source/Expression/ClangExpressionParser.cpp
parent17eaf4089da5462edf57f281da539310fd35dd8e (diff)
downloadbcm5719-llvm-b49440fa92c1cbdea3736acdb0882275c1ab0748.tar.gz
bcm5719-llvm-b49440fa92c1cbdea3736acdb0882275c1ab0748.zip
http://llvm.org/bugs/show_bug.cgi?id=11618
lldb::SBValue::AddressOf does not work on dereferenced registers in synthetic children provider Patch submitted by Enrico Granata. llvm-svn: 147637
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index 912822399dc..7c3e6589621 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -500,6 +500,8 @@ ClangExpressionParser::PrepareForExecution (lldb::addr_t &func_allocation_addr,
if (execution_policy != eExecutionPolicyAlways && ir_for_target.interpretSuccess())
{
+ if (const_result)
+ const_result->TransferAddress();
evaluated_statically = true;
err.Clear();
return err;
OpenPOWER on IntegriCloud