aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-10-31 21:48:42 +0300
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-10-31 21:50:18 +0300
commitae7b20b583fab1325d8b51fe5f2eaf612de8b95e (patch)
treee935df98913d468fc36f2c7df203209a1a9fdec7 /clang/lib/Sema/SemaInit.cpp
parent1344b65c90507e2368a3d0678df9f179e8890665 (diff)
downloadllvm-ae7b20b583fab1325d8b51fe5f2eaf612de8b95e.zip
llvm-ae7b20b583fab1325d8b51fe5f2eaf612de8b95e.tar.gz
llvm-ae7b20b583fab1325d8b51fe5f2eaf612de8b95e.tar.bz2
[clang][NFC] Refactor `VectorType::VectorKind`
This patch moves `VectorKind` to namespace scope, and make it complete at the point its bit-field is declared. It also converts it to a scoped enum.
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index ec796de..ed02d35 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -1808,8 +1808,8 @@ void InitListChecker::CheckVectorType(const InitializedEntity &Entity,
bool isBigEndian = SemaRef.Context.getTargetInfo().isBigEndian();
const VectorType *T = Entity.getType()->castAs<VectorType>();
- if (isBigEndian && (T->getVectorKind() == VectorType::NeonVector ||
- T->getVectorKind() == VectorType::NeonPolyVector)) {
+ if (isBigEndian && (T->getVectorKind() == VectorKind::Neon ||
+ T->getVectorKind() == VectorKind::NeonPoly)) {
// The ability to use vector initializer lists is a GNU vector extension
// and is unrelated to the NEON intrinsics in arm_neon.h. On little
// endian machines it works fine, however on big endian machines it