We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c83565 commit 2083e97Copy full SHA for 2083e97
mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -1119,8 +1119,9 @@ struct RewriteAlignedSubByteIntExt : OpRewritePattern<ConversionOpType> {
1119
PatternRewriter &rewriter) const override {
1120
// Verify the preconditions.
1121
Value srcValue = conversionOp.getIn();
1122
- auto srcVecType = cast<VectorType>(srcValue.getType());
1123
- auto dstVecType = cast<VectorType>(conversionOp.getType());
+ auto srcVecType = dyn_cast<VectorType>(srcValue.getType());
+ auto dstVecType = dyn_cast<VectorType>(conversionOp.getType());
1124
+
1125
if (failed(
1126
commonConversionPrecondition(rewriter, dstVecType, conversionOp)))
1127
return failure();
0 commit comments