summaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/OptionValueArgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/OptionValueArgs.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueArgs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionValueArgs.cpp b/lldb/source/Interpreter/OptionValueArgs.cpp
index e9f73e631dfd..963651640539 100644
--- a/lldb/source/Interpreter/OptionValueArgs.cpp
+++ b/lldb/source/Interpreter/OptionValueArgs.cpp
@@ -16,6 +16,6 @@ using namespace lldb_private;
size_t OptionValueArgs::GetArgs(Args &args) const {
args.Clear();
for (const auto &value : m_values)
- args.AppendArgument(value->GetStringValue().value_or(""));
+ args.AppendArgument(value->GetValueAs<llvm::StringRef>().value_or(""));
return args.GetArgumentCount();
}