diff options
| author | Martin Storsjö <martin@martin.st> | 2020-02-05 22:29:59 +0200 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-02-06 10:54:24 +0100 |
| commit | 22633f85bb7d317ff97c86b6ae7817b678777d93 (patch) | |
| tree | 8c20ccea7f073a98c06e2a61722b83b23d44bf3a /lldb/source/Interpreter/CommandAlias.cpp | |
| parent | cbec01fe05895abe96f2cb80e24367dec60209ee (diff) | |
| download | bcm5719-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/CommandAlias.cpp')
| -rw-r--r-- | lldb/source/Interpreter/CommandAlias.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandAlias.cpp b/lldb/source/Interpreter/CommandAlias.cpp index 5139c53a47b..5209a7bcbc4 100644 --- a/lldb/source/Interpreter/CommandAlias.cpp +++ b/lldb/source/Interpreter/CommandAlias.cpp @@ -65,7 +65,8 @@ static bool ProcessAliasOptionsArgs(lldb::CommandObjectSP &cmd_obj_sp, else { for (auto &entry : args.entries()) { if (!entry.ref().empty()) - option_arg_vector->emplace_back("<argument>", -1, entry.ref()); + option_arg_vector->emplace_back(std::string("<argument>"), -1, + std::string(entry.ref())); } } } |

