From 7f191e6d2c9ec4af1819c4e80a5453583cd72f08 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 11 May 2023 18:49:39 -0700 Subject: [NFC][xray] Initialize XRayFileHeader Avoids reports with msan -fno-inline. --- compiler-rt/include/xray/xray_records.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler-rt') diff --git a/compiler-rt/include/xray/xray_records.h b/compiler-rt/include/xray/xray_records.h index 89ccb4df2bde..4789509c2c24 100644 --- a/compiler-rt/include/xray/xray_records.h +++ b/compiler-rt/include/xray/xray_records.h @@ -45,14 +45,14 @@ struct alignas(32) XRayFileHeader { // What follows are a set of flags that indicate useful things for when // reading the data in the file. - bool ConstantTSC : 1; - bool NonstopTSC : 1; + bool ConstantTSC : 1 = false; + bool NonstopTSC : 1 = false; // The frequency by which TSC increases per-second. alignas(8) uint64_t CycleFrequency = 0; union { - char FreeForm[16]; + char FreeForm[16] = {}; // The current civiltime timestamp, as retrieved from 'clock_gettime'. This // allows readers of the file to determine when the file was created or // written down. -- cgit v1.2.1