Skip to content

Commit 58c7785

Browse files
committed
[nfc][ctx_profile] Fix printf - related -Wformat-pedantic
1 parent e90126e commit 58c7785

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ ContextNode *__llvm_ctx_profile_get_context(void *Callee, GUID Guid,
228228
Ret->counters_size() != NrCounters)
229229
__sanitizer::Printf("[ctxprof] Returned ctx differs from what's asked: "
230230
"Context: %p, Asked: %lu %u %u, Got: %lu %u %u \n",
231-
Ret, Guid, NrCallsites, NrCounters, Ret->guid(),
232-
Ret->callsites_size(), Ret->counters_size());
231+
reinterpret_cast<void *>(Ret), Guid, NrCallsites,
232+
NrCounters, Ret->guid(), Ret->callsites_size(),
233+
Ret->counters_size());
233234
onContextEnter(*Ret);
234235
return Ret;
235236
}

0 commit comments

Comments
 (0)