summaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2023-05-12 11:10:08 +0800
committerJie Fu <jiefu@tencent.com>2023-05-12 11:10:08 +0800
commit231c1d4134513e5a97cfdc874e8bda488ad59699 (patch)
treec44c15da916b8f8868c971039accdf909b097504 /compiler-rt
parent9b158debe0e40bab76c4a22574f89a9881de2ca1 (diff)
downloadllvm-231c1d4134513e5a97cfdc874e8bda488ad59699.tar.gz
[xray] Ignore -Wc++20-extensions in xray_records.h [NFC]
/data/llvm-project/compiler-rt/lib/xray/../../include/xray/xray_records.h:48:24: error: default member initializer for bit-field is a C++20 extension [ -Werror,-Wc++20-extensions] bool ConstantTSC : 1 = false; ^ /data/llvm-project/compiler-rt/lib/xray/../../include/xray/xray_records.h:49:23: error: default member initializer for bit-field is a C++20 extension [ -Werror,-Wc++20-extensions] bool NonstopTSC : 1 = false; ^ 2 errors generated.
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/include/xray/xray_records.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/include/xray/xray_records.h b/compiler-rt/include/xray/xray_records.h
index 4789509c2c24..268c653d6b2d 100644
--- a/compiler-rt/include/xray/xray_records.h
+++ b/compiler-rt/include/xray/xray_records.h
@@ -43,10 +43,13 @@ struct alignas(32) XRayFileHeader {
// have different files for different 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
// The frequency by which TSC increases per-second.
alignas(8) uint64_t CycleFrequency = 0;