summaryrefslogtreecommitdiff
path: root/lib/xray/xray_fdr_logging.cc
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-02-11 06:07:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-02-11 06:07:59 +0000
commitcf959bb78bd274e37ab81f474359338b110fd3ba (patch)
treee2f1e31c00b74ea3b2bb4083faa33781c0d1a232 /lib/xray/xray_fdr_logging.cc
parent78fb5428b5c21c94cd3cd755b1f4c52c74a87650 (diff)
Fix -Wsign-compare - this might not be quite right, but preserves behavior
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@294826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/xray_fdr_logging.cc')
-rw-r--r--lib/xray/xray_fdr_logging.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/xray/xray_fdr_logging.cc b/lib/xray/xray_fdr_logging.cc
index acb00b2d1..e111dbfe3 100644
--- a/lib/xray/xray_fdr_logging.cc
+++ b/lib/xray/xray_fdr_logging.cc
@@ -116,9 +116,7 @@ XRayLogFlushStatus fdrLoggingFlush() XRAY_NEVER_INSTRUMENT {
XRayFileHeader Header;
Header.Version = 1;
Header.Type = FileTypes::FDR_LOG;
- auto TSCFrequency = getTSCFrequency();
- Header.CycleFrequency =
- TSCFrequency == -1 ? 0 : static_cast<uint64_t>(TSCFrequency);
+ Header.CycleFrequency = getTSCFrequency();
// FIXME: Actually check whether we have 'constant_tsc' and 'nonstop_tsc'
// before setting the values in the header.
Header.ConstantTSC = 1;