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.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@147637 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionParser.cpp b/source/Expression/ClangExpressionParser.cpp
index 9128223..7c3e658 100644
--- a/source/Expression/ClangExpressionParser.cpp
+++ b/source/Expression/ClangExpressionParser.cpp
@@ -500,6 +500,8 @@
         
         if (execution_policy != eExecutionPolicyAlways && ir_for_target.interpretSuccess())
         {
+            if (const_result)
+                const_result->TransferAddress();
             evaluated_statically = true;
             err.Clear();
             return err;