[llvm] [llvm][DebugInfo] formatv in LVReader (PR #192007)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 02:02:40 PDT 2026
================
@@ -70,22 +70,19 @@ bool checkIntegrityScopesTree(LVScope *Root) {
});
auto PrintIndex = [](unsigned Index) {
- if (Index)
- dbgs() << format("%8d: ", Index);
- else
- dbgs() << format("%8c: ", ' ');
+ dbgs() << formatv("{0,8}: ", Index ? Index : ' ');
----------------
DavidSpickett wrote:
I don't think this is exactly the same. The code used to print Index as an integer, or a space as a character. This new code does the first part but then prints the space as an 8 wide integer instead of a character.
https://github.com/llvm/llvm-project/pull/192007
More information about the llvm-commits
mailing list