<div dir="ltr">Hi Sean, would it be possible to add a test for this?</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 30, 2015 at 5:40 PM Sean Callanan via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: spyffe<br>
Date: Wed Sep 30 19:39:03 2015<br>
New Revision: 248971<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=248971&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=248971&view=rev</a><br>
Log:<br>
Use the preferred display language when making a persistent variable from a<br>
ValueObject.<br>
<br>
Modified:<br>
    lldb/trunk/source/Core/ValueObject.cpp<br>
<br>
Modified: lldb/trunk/source/Core/ValueObject.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=248971&r1=248970&r2=248971&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=248971&r1=248970&r2=248971&view=diff</a><br>
==============================================================================<br>
--- lldb/trunk/source/Core/ValueObject.cpp (original)<br>
+++ lldb/trunk/source/Core/ValueObject.cpp Wed Sep 30 19:39:03 2015<br>
@@ -4277,7 +4277,7 @@ ValueObject::Persist ()<br>
     if (!target_sp)<br>
         return nullptr;<br>
<br>
-    PersistentExpressionState *persistent_state = target_sp->GetScratchTypeSystemForLanguage(GetCompilerType().GetMinimumLanguage())->GetPersistentExpressionState();<br>
+    PersistentExpressionState *persistent_state = target_sp->GetScratchTypeSystemForLanguage(GetPreferredDisplayLanguage())->GetPersistentExpressionState();<br>
<br>
     if (!persistent_state)<br>
         return nullptr;<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>