diff --git a/compiler-rt/lib/profile/InstrProfilingWriter.c b/compiler-rt/lib/profile/InstrProfilingWriter.c --- a/compiler-rt/lib/profile/InstrProfilingWriter.c +++ b/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. */