[llvm] 2b593be - [llvm][DebugInfo] formatv in LVElement (#192002)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 03:18:59 PDT 2026


Author: Konrad Kleine
Date: 2026-04-14T12:18:54+02:00
New Revision: 2b593be98121e363d38644183210bf1933604a5a

URL: https://github.com/llvm/llvm-project/commit/2b593be98121e363d38644183210bf1933604a5a
DIFF: https://github.com/llvm/llvm-project/commit/2b593be98121e363d38644183210bf1933604a5a.diff

LOG: [llvm][DebugInfo] formatv in LVElement (#192002)

This relates to #35980.

Added: 
    

Modified: 
    llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp

Removed: 
    


################################################################################
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