================ @@ -43,8 +43,7 @@ CompilerType RegisterTypeBuilderClang::GetRegisterType( ScratchTypeSystemClang::GetForTarget(m_target); assert(type_system); - std::string register_type_name = "__lldb_register_fields_"; - register_type_name += name; + std::string register_type_name = "__lldb_register_fields_" + name; ---------------- DavidSpickett wrote:
I'll always need a StringRef for GetTypeForIdentifier, and I don't think the Twine can be represented as a single StringRef in this case. So I'll have to call .str() on the Twine regardless. Unless I am missing another advantage to Twine here? https://github.com/llvm/llvm-project/pull/95768 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits