summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-10-01 00:39:03 +0000
committerSean Callanan <scallanan@apple.com>2015-10-01 00:39:03 +0000
commit0f625f42fdfad168fc8c0ae2ecbc72093ad5ee75 (patch)
tree2a99ccfe56dccf3d84d0095a8514105b6e5624ba /lldb/source/Core/ValueObject.cpp
parent7aeb7e256b19519003ec7297714687affea7dad3 (diff)
downloadbcm5719-llvm-0f625f42fdfad168fc8c0ae2ecbc72093ad5ee75.tar.gz
bcm5719-llvm-0f625f42fdfad168fc8c0ae2ecbc72093ad5ee75.zip
Use the preferred display language when making a persistent variable from a
ValueObject. llvm-svn: 248971
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index ca5a992f8a9..601c172aed7 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -4277,7 +4277,7 @@ ValueObject::Persist ()
if (!target_sp)
return nullptr;
- PersistentExpressionState *persistent_state = target_sp->GetScratchTypeSystemForLanguage(GetCompilerType().GetMinimumLanguage())->GetPersistentExpressionState();
+ PersistentExpressionState *persistent_state = target_sp->GetScratchTypeSystemForLanguage(GetPreferredDisplayLanguage())->GetPersistentExpressionState();
if (!persistent_state)
return nullptr;
OpenPOWER on IntegriCloud