diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-10-31 21:48:42 +0300 |
---|---|---|
committer | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-10-31 21:50:18 +0300 |
commit | ae7b20b583fab1325d8b51fe5f2eaf612de8b95e (patch) | |
tree | e935df98913d468fc36f2c7df203209a1a9fdec7 /clang/lib/Sema/SemaChecking.cpp | |
parent | 1344b65c90507e2368a3d0678df9f179e8890665 (diff) | |
download | llvm-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/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index a022eed..a8217ed 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -4645,7 +4645,7 @@ static QualType DecodePPCMMATypeFromStr(ASTContext &Context, const char *&Str, switch (*Str++) { case 'V': return Context.getVectorType(Context.UnsignedCharTy, 16, - VectorType::VectorKind::AltiVecVector); + VectorKind::AltiVecVector); case 'i': { char *End; unsigned size = strtoul(Str, &End, 10); @@ -9153,8 +9153,8 @@ ExprResult Sema::SemaBuiltinShuffleVector(CallExpr *TheCall) { TheCall->getArg(1)->getEndLoc())); } else if (numElements != numResElements) { QualType eltType = LHSType->castAs<VectorType>()->getElementType(); - resType = Context.getVectorType(eltType, numResElements, - VectorType::GenericVector); + resType = + Context.getVectorType(eltType, numResElements, VectorKind::Generic); } } |