[Lldb-commits] [PATCH] D136719: change debugserver to return an empty platform name for unknown platforms, instead of crashing
Jason Molenda via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 26 12:02:55 PDT 2022
jasonmolenda added a comment.
In D136719#3886254 <https://reviews.llvm.org/D136719#3886254>, @tschuett wrote:
> Looks great, but I would have expected `std::optional<std::string>` and a `nullopt`.
Yeah I'm fine with that, it does seems more natural. In this case we're returning the address of a half-dozen const strings in the text section, so there wasn't any lifetime worries or anything, I left it as a char* after thinking about it for a few seconds. I'll update to use a std::string, this is not a hot code path, a small object allocation doesn't matter.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136719/new/
https://reviews.llvm.org/D136719
More information about the lldb-commits
mailing list