diff --git a/compiler-rt/lib/xray/xray_powerpc64.inc b/compiler-rt/lib/xray/xray_powerpc64.inc --- a/compiler-rt/lib/xray/xray_powerpc64.inc +++ b/compiler-rt/lib/xray/xray_powerpc64.inc @@ -22,7 +22,7 @@ uint64_t __ppc_get_timebase_freq (void) { - double tb_freq = 0.0; + uint64_t tb_freq = 0.0; size_t length = sizeof(tb_freq); sysctlbyname("kern.timecounter.tc.timebase.frequency", &tb_freq, &length, nullptr, 0); return tb_freq;