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/CodeGen/CGDebugInfo.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/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 2fb4fa4..dca11b3 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -3121,8 +3121,8 @@ llvm::DIType *CGDebugInfo::CreateType(const VectorType *Ty, uint64_t NumVectorBytes = Size / Ctx.getCharWidth(); // Construct the vector of 'char' type. - QualType CharVecTy = Ctx.getVectorType(Ctx.CharTy, NumVectorBytes, - VectorType::GenericVector); + QualType CharVecTy = + Ctx.getVectorType(Ctx.CharTy, NumVectorBytes, VectorKind::Generic); return CreateType(CharVecTy->getAs<VectorType>(), Unit); } |