JDevlieghere added inline comments.
================ Comment at: lldb/include/lldb/Interpreter/OptionGroupPlatform.h:52 - void SetSDKRootDirectory(ConstString sdk_root_directory) { - m_sdk_sysroot = sdk_root_directory; + void SetSDKRootDirectory(llvm::StringRef sdk_root_directory) { + m_sdk_sysroot = sdk_root_directory.str(); ---------------- bulbazord wrote: > JDevlieghere wrote: > > This should take a std::string by value and move it. > Is there a specific reason you want to do that instead of using > `llvm::StringRef::str()`? Yes, it saves a copy when calling `SetSDKRootDirectory` with an rvalue reference or a moved std::string. There's no downside if you're going to store it as a std::string anyway. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D152331/new/ https://reviews.llvm.org/D152331 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits