[llvm-branch-commits] [NFC][memprof] Use %p to print addresses (PR #98577)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 11 18:50:00 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
Author: Vitaly Buka (vitalybuka)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/98577.diff
1 Files Affected:
- (modified) compiler-rt/lib/memprof/memprof_rtl.cpp (+1-1)
``````````diff
diff --git a/compiler-rt/lib/memprof/memprof_rtl.cpp b/compiler-rt/lib/memprof/memprof_rtl.cpp
index a87e8cefd6c40..cf4bde808bfad 100644
--- a/compiler-rt/lib/memprof/memprof_rtl.cpp
+++ b/compiler-rt/lib/memprof/memprof_rtl.cpp
@@ -152,7 +152,7 @@ void PrintAddressSpaceLayout() {
Printf("SHADOW_SCALE: %d\n", (int)SHADOW_SCALE);
Printf("SHADOW_GRANULARITY: %d\n", (int)SHADOW_GRANULARITY);
- Printf("SHADOW_OFFSET: 0x%zx\n", (uptr)SHADOW_OFFSET);
+ Printf("SHADOW_OFFSET: %p\n", (void *)SHADOW_OFFSET);
CHECK(SHADOW_SCALE >= 3 && SHADOW_SCALE <= 7);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/98577
More information about the llvm-branch-commits
mailing list