[libunwind] Fix -Wformat diagnostic after #190965 (PR #193704)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 23 02:49:31 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libunwind

Author: Alexander Kornienko (alexfh)

<details>
<summary>Changes</summary>

Fixes libunwind compiler diagnostic when building with clang after 034d4dcad6396d1241e8262e69871b8d61da7e4f

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


1 Files Affected:

- (modified) libunwind/src/CompactUnwinder.hpp (+2-2) 


``````````diff
diff --git a/libunwind/src/CompactUnwinder.hpp b/libunwind/src/CompactUnwinder.hpp
index cd2e0e3431314..93a0b6c085294 100644
--- a/libunwind/src/CompactUnwinder.hpp
+++ b/libunwind/src/CompactUnwinder.hpp
@@ -335,7 +335,7 @@ int CompactUnwinder_x86_64<A>::stepWithCompactEncodingRBPFrame(
     default:
       (void)functionStart;
       _LIBUNWIND_DEBUG_LOG("bad register for RBP frame, encoding=%08X for "
-                           "function starting at 0x%llX",
+                           "function starting at 0x%" PRIu64 "X",
                             compactEncoding, functionStart);
       _LIBUNWIND_ABORT("invalid compact unwind encoding");
     }
@@ -454,7 +454,7 @@ int CompactUnwinder_x86_64<A>::stepWithCompactEncodingFrameless(
       break;
     default:
       _LIBUNWIND_DEBUG_LOG("bad register for frameless, encoding=%08X for "
-                           "function starting at 0x%llX",
+                           "function starting at 0x%" PRIu64 "X",
                             encoding, functionStart);
       _LIBUNWIND_ABORT("invalid compact unwind encoding");
     }

``````````

</details>


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


More information about the cfe-commits mailing list