[llvm] [llvm][DebugInfo] Use formatv in DWARFExpressionPrinter (PR #191993)

Konrad Kleine via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 09:01:00 PDT 2026


================
@@ -176,7 +176,8 @@ void printDwarfExpression(const DWARFExpression *E, raw_ostream &OS,
     if (!printOp(&Op, OS, DumpOpts, E, U) && !DumpOpts.PrintRegisterOnly) {
       uint64_t FailOffset = Op.getEndOffset();
       while (FailOffset < E->getData().size())
-        OS << format(" %02x", static_cast<uint8_t>(E->getData()[FailOffset++]));
+        OS << formatv(" {0:x-2}",
+                      static_cast<uint8_t>(E->getData()[FailOffset++]));
----------------
kwk wrote:

These are the 5 tests failing:

```
  LLVM :: DebugInfo/X86/DW_OP_call_ref_unexpected.s
  LLVM :: DebugInfo/X86/implicit_value-double.ll
  LLVM :: DebugInfo/X86/implicit_value-float.ll
  LLVM :: tools/llvm-dwarfdump/X86/DW_OP_LLVM_user.s
  LLVM :: tools/llvm-dwarfdump/X86/verify_broken_exprloc.s
```

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


More information about the llvm-commits mailing list