[llvm] [llvm][DebugInfo] formatv in LVElement (PR #192002)

Konrad Kleine via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 00:50:59 PDT 2026


https://github.com/kwk created https://github.com/llvm/llvm-project/pull/192002

This relates to #35980.

>From b3bf0d5d71cc455556f080b880395b22bb3d88dc Mon Sep 17 00:00:00 2001
From: Konrad Kleine <kkleine at redhat.com>
Date: Mon, 13 Apr 2026 20:20:39 +0000
Subject: [PATCH] [llvm][DebugInfo] formatv in LVElement

This relates to #35980.
---
 llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp b/llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp
index c6fb405baed1d..d805b44c6ca36 100644
--- a/llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp
+++ b/llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp
@@ -529,7 +529,7 @@ void LVElement::printFileIndex(raw_ostream &OS, bool Full) const {
 
       OS << "  {Source} ";
       if (getInvalidFilename())
-        OS << format("[0x%08x]\n", Index);
+        OS << formatv("[{0:x8}]\n", Index);
       else
         OS << formattedName(getPathname()) << "\n";
     }



More information about the llvm-commits mailing list