diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp --- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp +++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp @@ -1925,7 +1925,8 @@ LLVMType LLVMType::getVectorTy(LLVMType elementType, unsigned numElements) { // Lock access to the dialect as this may modify the LLVM context. return getLocked(&elementType.getDialect(), [=] { - return llvm::VectorType::get(elementType.getUnderlyingType(), numElements); + return llvm::FixedVectorType::get(elementType.getUnderlyingType(), + numElements); }); }