[compiler-rt] 478739b - Revert "[NFC][xray] Initialize XRayFileHeader"

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 23:58:07 PDT 2023


Author: Vitaly Buka
Date: 2023-05-11T23:57:54-07:00
New Revision: 478739b2d12cf59bdd4394fd7ebe681043dd135b

URL: https://github.com/llvm/llvm-project/commit/478739b2d12cf59bdd4394fd7ebe681043dd135b
DIFF: https://github.com/llvm/llvm-project/commit/478739b2d12cf59bdd4394fd7ebe681043dd135b.diff

LOG: Revert "[NFC][xray] Initialize XRayFileHeader"
Revert "[xray] Ignore -Wc++20-extensions in xray_records.h [NFC]"

Not needed. The fix is 3826a74fc7ad589e268b267d9323d4d416c5f6e9.

This reverts commit 231c1d4134513e5a97cfdc874e8bda488ad59699.
This reverts commit 7f191e6d2c9ec4af1819c4e80a5453583cd72f08.

Added: 
    

Modified: 
    compiler-rt/include/xray/xray_records.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/include/xray/xray_records.h b/compiler-rt/include/xray/xray_records.h
index 268c653d6b2da..89ccb4df2bde6 100644
--- a/compiler-rt/include/xray/xray_records.h
+++ b/compiler-rt/include/xray/xray_records.h
@@ -43,19 +43,16 @@ struct alignas(32) XRayFileHeader {
   // have 
diff erent files for 
diff erent information being stored.
   uint16_t Type = 0;
 
-  #pragma clang diagnostic push
-  #pragma clang diagnostic ignored "-Wc++20-extensions"
   // What follows are a set of flags that indicate useful things for when
   // reading the data in the file.
-  bool ConstantTSC : 1 = false;
-  bool NonstopTSC : 1 = false;
-  #pragma clang diagnostic pop
+  bool ConstantTSC : 1;
+  bool NonstopTSC : 1;
 
   // 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.


        


More information about the llvm-commits mailing list