Make llvm::StringRef to std::string conversions explicit.
This is how it should've been and brings it more in line with std::string_view. There should be no functional change here. This is mostly mechanical from a custom clang-tidy check, with a lot of manual fixups. It uncovers a lot of minor inefficiencies. This doesn't actually modify StringRef yet, I'll do that in a follow-up.
This commit is contained in:
@@ -337,7 +337,7 @@ OperatingSystemPython::CreateRegisterContextForThread(Thread *thread,
|
||||
m_interpreter->OSPlugin_RegisterContextData(m_python_object_sp,
|
||||
thread->GetID());
|
||||
if (reg_context_data) {
|
||||
std::string value = reg_context_data->GetValue();
|
||||
std::string value = std::string(reg_context_data->GetValue());
|
||||
DataBufferSP data_sp(new DataBufferHeap(value.c_str(), value.length()));
|
||||
if (data_sp->GetByteSize()) {
|
||||
RegisterContextMemory *reg_ctx_memory = new RegisterContextMemory(
|
||||
|
||||
Reference in New Issue
Block a user