[llvm] [llvm][DebugInfo] formatv in LVObject (PR #192004)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 00:52:41 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-debuginfo

Author: Konrad Kleine (kwk)

<details>
<summary>Changes</summary>

This relates to #<!-- -->35980.

---
Full diff: https://github.com/llvm/llvm-project/pull/192004.diff


1 Files Affected:

- (modified) llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp (+1-1) 


``````````diff
diff --git a/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp b/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp
index 5ccbcbfa4f0aa..2d76f82a4184d 100644
--- a/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp
+++ b/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp
@@ -123,7 +123,7 @@ void LVObject::printAttributes(raw_ostream &OS, bool Full, StringRef Name,
   // Print the line.
   std::string TheLineNumber(Object.lineNumberAsString());
   std::string TheIndentation(Object.indentAsString());
-  OS << format(" %5s %s ", TheLineNumber.c_str(), TheIndentation.c_str());
+  OS << formatv(" {0,5} {1} ", TheLineNumber, TheIndentation);
 
   OS << Name;
   if (PrintRef && options().getAttributeOffset())

``````````

</details>


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


More information about the llvm-commits mailing list