This revision was automatically updated to reflect the committed changes.
Closed by commit rG1b29a848ffa2: [lldb][NFCI] Avoid construction of temporary
std::strings in RegisterValue (authored by bulbazord).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155030/new/
https://reviews.llvm.org/D155030
Files:
lldb/source/Utility/RegisterValue.cpp
Index: lldb/source/Utility/RegisterValue.cpp
===================================================================
--- lldb/source/Utility/RegisterValue.cpp
+++ lldb/source/Utility/RegisterValue.cpp
@@ -342,9 +342,8 @@
break;
}
if (value_str.getAsInteger(0, uval64)) {
- error.SetErrorStringWithFormat(
- "'%s' is not a valid unsigned integer string value",
- value_str.str().c_str());
+ error.SetErrorStringWithFormatv(
+ "'{0}' is not a valid unsigned integer string value", value_str);
break;
}
@@ -371,9 +370,8 @@
}
if (value_str.getAsInteger(0, ival64)) {
- error.SetErrorStringWithFormat(
- "'%s' is not a valid signed integer string value",
- value_str.str().c_str());
+ error.SetErrorStringWithFormatv(
+ "'{0}' is not a valid signed integer string value", value_str);
break;
}
Index: lldb/source/Utility/RegisterValue.cpp
===================================================================
--- lldb/source/Utility/RegisterValue.cpp
+++ lldb/source/Utility/RegisterValue.cpp
@@ -342,9 +342,8 @@
break;
}
if (value_str.getAsInteger(0, uval64)) {
- error.SetErrorStringWithFormat(
- "'%s' is not a valid unsigned integer string value",
- value_str.str().c_str());
+ error.SetErrorStringWithFormatv(
+ "'{0}' is not a valid unsigned integer string value", value_str);
break;
}
@@ -371,9 +370,8 @@
}
if (value_str.getAsInteger(0, ival64)) {
- error.SetErrorStringWithFormat(
- "'%s' is not a valid signed integer string value",
- value_str.str().c_str());
+ error.SetErrorStringWithFormatv(
+ "'{0}' is not a valid signed integer string value", value_str);
break;
}
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits