From ae7b20b583fab1325d8b51fe5f2eaf612de8b95e Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 31 Oct 2023 21:48:42 +0300 Subject: [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. --- clang/lib/CodeGen/CGDebugInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp') 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(), Unit); } -- cgit v1.1