summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectVariable.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-17 23:32:26 +0000
committerZachary Turner <zturner@google.com>2016-11-17 23:32:26 +0000
commit8df8046bd9ef12e908adf7c2522142b62232e4b5 (patch)
tree13a59340fa0e8e37f92128af310c3bba7eda8718 /lldb/source/Core/ValueObjectVariable.cpp
parent933fcab2ad476809967695b9b11087c6b96d6b64 (diff)
downloadbcm5719-llvm-8df8046bd9ef12e908adf7c2522142b62232e4b5.tar.gz
bcm5719-llvm-8df8046bd9ef12e908adf7c2522142b62232e4b5.zip
Revert "Change RegisterValue getters / setters to use StringRef."
This reverts commit r287279, which breaks some register tests on Linux. llvm-svn: 287281
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
-rw-r--r--lldb/source/Core/ValueObjectVariable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp
index f8eedc30e70..f0695d85ac2 100644
--- a/lldb/source/Core/ValueObjectVariable.cpp
+++ b/lldb/source/Core/ValueObjectVariable.cpp
@@ -343,7 +343,7 @@ bool ValueObjectVariable::SetValueFromCString(const char *value_str,
error.SetErrorString("unable to retrieve register info");
return false;
}
- error = reg_value.SetValueFromString(reg_info, llvm::StringRef(value_str));
+ error = reg_value.SetValueFromCString(reg_info, value_str);
if (error.Fail())
return false;
if (reg_ctx->WriteRegister(reg_info, reg_value)) {
OpenPOWER on IntegriCloud