diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-05-11 18:49:39 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-05-11 18:52:30 -0700 |
commit | 7f191e6d2c9ec4af1819c4e80a5453583cd72f08 (patch) | |
tree | 3a551aa3e558c640a6e5ae7edeaa6cbe5df42731 /compiler-rt | |
parent | 80ed3c30fc5c4c9f7f4f56360b30bcd4c1eb87fa (diff) | |
download | llvm-7f191e6d2c9ec4af1819c4e80a5453583cd72f08.tar.gz |
[NFC][xray] Initialize XRayFileHeader
Avoids reports with msan -fno-inline.
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/include/xray/xray_records.h | 6 |
1 files changed, 3 insertions, 3 deletions
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. |