Skip to content

Commit b44b349

Browse files
committed
[mlir][ArmSVE] Avoid UBSAN issue with VectorType::Builder (NFC)
This patch just avoids the underlying bug in VectorType::Builder, which currently has incorrect copy/move constructors. See https://lab.llvm.org/buildbot/#/builders/5/builds/37355
1 parent 0aacc21 commit b44b349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/ArmSVE/Transforms/LegalizeForLLVMExport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct SvboolConversionOpLowering : public ConvertOpToLLVMPattern<Op> {
117117
auto extractOrInsertPosition = ArrayRef(index).drop_back();
118118
auto sourceVector = rewriter.create<vector::ExtractOp>(
119119
loc, source, extractOrInsertPosition);
120-
auto convertedType =
120+
VectorType convertedType =
121121
VectorType::Builder(llvm::cast<VectorType>(sourceVector.getType()))
122122
.setDim(0, resultType.getShape().back());
123123
auto convertedVector =

0 commit comments

Comments
 (0)