[lldb][NFCI] Minor cleanup of default OptionValue::GetSubValue implementation
authorAlex Langford <alangford@apple.com>
Mon, 3 Jul 2023 20:29:48 +0000 (13:29 -0700)
committerAlex Langford <alangford@apple.com>
Wed, 5 Jul 2023 16:00:59 +0000 (09:00 -0700)
commitfd5748cb5a45c4178b84eb329bea9055f8ee485d
tree15979d4c62defdcf447d9acd66184e899feaa355
parent20f99278dbb81e880c23c65688e9752ce7ad019a
[lldb][NFCI] Minor cleanup of default OptionValue::GetSubValue implementation

This does 2 things:
- Corrects a minor typo (`value subvalue` -> `valid subvalue`)
- Removes an unnecessary instance of `str().c_str()` (creating a
  temporary std::string from a StringRef just to get a valid
  null-terminated string).

Differential Revision: https://reviews.llvm.org/D154387
lldb/include/lldb/Interpreter/OptionValue.h