Skip to content

Commit f22115a

Browse files
authored
[CIR] Backport replacing removed getFixedVectorType with vectortype get (#1585)
Use VectorType::get instead of the `getFixedVectorType` function because it's already removed PR llvm/llvm-project#135051
1 parent dec120e commit f22115a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4448,7 +4448,7 @@ void prepareTypeConverter(mlir::LLVMTypeConverter &converter,
44484448
});
44494449
converter.addConversion([&](cir::VectorType type) -> mlir::Type {
44504450
auto ty = converter.convertType(type.getElementType());
4451-
return mlir::LLVM::getFixedVectorType(ty, type.getSize());
4451+
return mlir::VectorType::get(type.getSize(), ty);
44524452
});
44534453
converter.addConversion([&](cir::BoolType type) -> mlir::Type {
44544454
return mlir::IntegerType::get(type.getContext(), 1,

0 commit comments

Comments
 (0)