[compiler-rt] 58c7785 - [nfc][ctx_profile] Fix printf - related `-Wformat-pedantic`
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Sat May 18 08:47:38 PDT 2024
Author: Mircea Trofin
Date: 2024-05-18T08:46:26-07:00
New Revision: 58c778565cd64a69ea86e7e67e6a87fff3b0b224
URL: https://github.com/llvm/llvm-project/commit/58c778565cd64a69ea86e7e67e6a87fff3b0b224
DIFF: https://github.com/llvm/llvm-project/commit/58c778565cd64a69ea86e7e67e6a87fff3b0b224.diff
LOG: [nfc][ctx_profile] Fix printf - related `-Wformat-pedantic`
Added:
Modified:
compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp b/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
index cff39eeafba6e..a0a535015bf2e 100644
--- a/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+++ b/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
@@ -228,8 +228,9 @@ ContextNode *__llvm_ctx_profile_get_context(void *Callee, GUID Guid,
Ret->counters_size() != NrCounters)
__sanitizer::Printf("[ctxprof] Returned ctx
diff ers from what's asked: "
"Context: %p, Asked: %lu %u %u, Got: %lu %u %u \n",
- Ret, Guid, NrCallsites, NrCounters, Ret->guid(),
- Ret->callsites_size(), Ret->counters_size());
+ reinterpret_cast<void *>(Ret), Guid, NrCallsites,
+ NrCounters, Ret->guid(), Ret->callsites_size(),
+ Ret->counters_size());
onContextEnter(*Ret);
return Ret;
}
More information about the llvm-commits
mailing list