summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectRegister.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/ValueObjectRegister.cpp')
-rw-r--r--lldb/source/Core/ValueObjectRegister.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectRegister.cpp b/lldb/source/Core/ValueObjectRegister.cpp
index 0dc2cc013f2..80e00e4007c 100644
--- a/lldb/source/Core/ValueObjectRegister.cpp
+++ b/lldb/source/Core/ValueObjectRegister.cpp
@@ -311,7 +311,8 @@ bool ValueObjectRegister::UpdateValue() {
bool ValueObjectRegister::SetValueFromCString(const char *value_str,
Error &error) {
// The new value will be in the m_data. Copy that into our register value.
- error = m_reg_value.SetValueFromCString(&m_reg_info, value_str);
+ error =
+ m_reg_value.SetValueFromString(&m_reg_info, llvm::StringRef(value_str));
if (error.Success()) {
if (m_reg_ctx_sp->WriteRegister(&m_reg_info, m_reg_value)) {
SetNeedsUpdate();
OpenPOWER on IntegriCloud