[PATCH] D107619: [InstrProfiling] Fix warnings when building for Windows
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 9 01:39:24 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG743f78ef7fca: [InstrProfiling] Fix warnings when building for Windows (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107619/new/
https://reviews.llvm.org/D107619
Files:
compiler-rt/lib/profile/InstrProfilingWriter.c
Index: compiler-rt/lib/profile/InstrProfilingWriter.c
===================================================================
--- compiler-rt/lib/profile/InstrProfilingWriter.c
+++ compiler-rt/lib/profile/InstrProfilingWriter.c
@@ -286,7 +286,7 @@
/* On WIN64, label differences are truncated 32-bit values. Truncate
* CountersDelta to match. */
#ifdef _WIN64
- Header.CountersDelta = (void *)(uint32_t)Header.CountersDelta;
+ Header.CountersDelta = (uint32_t)Header.CountersDelta;
#endif
/* Write the profile header. */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107619.365122.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210809/18f24aa0/attachment.bin>
More information about the llvm-commits
mailing list