================
@@ -315,8 +315,8 @@ void SBCommandReturnObject::PutCString(const char *string,
int len) {
if (len == 0 || string == nullptr || *string == 0) {
return;
} else if (len > 0) {
- std::string buffer(string, len);
- ref().AppendMessage(buffer.c_str());
+ const llvm::StringRef buffer{string, static_cast<size_t>(len)};
----------------
da-viper wrote:
using the `{ }` does not implicitly convert arguments `int -> size_t`, but will
update it to `()`
https://github.com/llvm/llvm-project/pull/173365
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits