diff options
author | Phoebe Wang <phoebe.wang@intel.com> | 2022-05-04 19:21:13 +0800 |
---|---|---|
committer | Phoebe Wang <phoebe.wang@intel.com> | 2022-05-04 21:12:12 +0800 |
commit | 2d18a86d14a936798a34b10d4b951465b7f0527f (patch) | |
tree | f9847a0e570f085a5f509e002a5b9a326a0a26c0 /clang/lib/Headers | |
parent | 2df9bd30e4a0669297529fce79ffa5655de99395 (diff) | |
download | llvm-2d18a86d14a936798a34b10d4b951465b7f0527f.zip llvm-2d18a86d14a936798a34b10d4b951465b7f0527f.tar.gz llvm-2d18a86d14a936798a34b10d4b951465b7f0527f.tar.bz2 |
[X86] Fix uninitialized variable warnings in cetintrin.h reported by #55224
Fix uninitialized variables introduced by D116325.
Differential Revision: https://reviews.llvm.org/D124916
Diffstat (limited to 'clang/lib/Headers')
-rw-r--r-- | clang/lib/Headers/cetintrin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Headers/cetintrin.h b/clang/lib/Headers/cetintrin.h index 019cab0..55670a0 100644 --- a/clang/lib/Headers/cetintrin.h +++ b/clang/lib/Headers/cetintrin.h @@ -43,8 +43,11 @@ static __inline__ unsigned int __DEFAULT_FN_ATTRS _rdsspd(unsigned int __a) { } static __inline__ unsigned int __DEFAULT_FN_ATTRS _rdsspd_i32() { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wuninitialized" unsigned int t; return __builtin_ia32_rdsspd(t); +#pragma clang diagnostic pop } #ifdef __x86_64__ @@ -53,8 +56,11 @@ static __inline__ unsigned long long __DEFAULT_FN_ATTRS _rdsspq(unsigned long lo } static __inline__ unsigned long long __DEFAULT_FN_ATTRS _rdsspq_i64() { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wuninitialized" unsigned long long t; return __builtin_ia32_rdsspq(t); +#pragma clang diagnostic pop } #endif /* __x86_64__ */ |