summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Options.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-02-05 22:29:59 +0200
committerHans Wennborg <hans@chromium.org>2020-02-06 10:54:24 +0100
commit22633f85bb7d317ff97c86b6ae7817b678777d93 (patch)
tree8c20ccea7f073a98c06e2a61722b83b23d44bf3a /lldb/source/Interpreter/Options.cpp
parentcbec01fe05895abe96f2cb80e24367dec60209ee (diff)
downloadbcm5719-llvm-22633f85bb7d317ff97c86b6ae7817b678777d93.tar.gz
bcm5719-llvm-22633f85bb7d317ff97c86b6ae7817b678777d93.zip
[LLDB] Fix compilation with GCC 5
Differential Revision: https://reviews.llvm.org/D74084 (cherry picked from commit 5bbaf543585c54868f8a2bdd9e74edcf395b24b3)
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r--lldb/source/Interpreter/Options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index 0bceea14269..80e9d3a6fc1 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -1061,8 +1061,8 @@ llvm::Expected<Args> Options::ParseAlias(const Args &args,
}
if (!option_arg)
option_arg = "<no-argument>";
- option_arg_vector->emplace_back(option_str.GetString(), has_arg,
- option_arg);
+ option_arg_vector->emplace_back(std::string(option_str.GetString()),
+ has_arg, std::string(option_arg));
// Find option in the argument list; also see if it was supposed to take an
// argument and if one was supplied. Remove option (and argument, if
OpenPOWER on IntegriCloud