[llvm] [llvm][DebugInfo] BTFParser use formatv instead of format (PR #186109)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 24 03:46:15 PDT 2026
================
@@ -689,7 +691,7 @@ void BTFParser::symbolize(const BTF::BPFFieldReloc *Reloc,
uint32_t CurId = Reloc->TypeID;
const BTF::CommonType *Type = findType(CurId);
if (!Type)
- return Fail(format("unknown type id: %d", CurId));
+ return Fail(formatv("unknown type id: {0:d}", CurId));
----------------
DavidSpickett wrote:
`uint32_t CurId` but `%d` is supposed to be signed. Only a problem if it approaches 4 billion.
https://github.com/llvm/llvm-project/pull/186109
More information about the llvm-commits
mailing list