[compiler-rt] [scudo] Add append overloads for integers and bool (PR #195172)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 13:58:27 PDT 2026


================
@@ -229,6 +229,56 @@ void ScopedString::append(const char *Format, ...) {
   va_end(Args);
 }
 
+void ScopedString::append(const s32 Value) {
+  DCHECK(String.size() > 0);
+  String.resize(String.size() - 1);
+  appendSignedDecimal(static_cast<s64>(Value), 0, false);
+  String.push_back('\0');
----------------
enh-google wrote:

i'm assuming the plan is to factor this duplication out in the next patch, rather than doing it first?

https://github.com/llvm/llvm-project/pull/195172


More information about the llvm-commits mailing list