summaryrefslogtreecommitdiffstats
path: root/mlir/lib/SuperVectorOps/SuperVectorOps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/SuperVectorOps/SuperVectorOps.cpp')
-rw-r--r--mlir/lib/SuperVectorOps/SuperVectorOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/SuperVectorOps/SuperVectorOps.cpp b/mlir/lib/SuperVectorOps/SuperVectorOps.cpp
index 4a106b066d6..3ffff21155b 100644
--- a/mlir/lib/SuperVectorOps/SuperVectorOps.cpp
+++ b/mlir/lib/SuperVectorOps/SuperVectorOps.cpp
@@ -484,7 +484,7 @@ bool VectorTypeCastOp::verify() const {
if (!dstVectorType)
return emitOpError(
"expects vector as an element of the target memref type");
- if (llvm::any_of(dstMemrefType.getShape(), [](int s) { return s == -1; }))
+ if (!dstMemrefType.hasStaticShape())
return emitOpError("does not support dynamic shapes");
if (!getOperand()->getType().isa<MemRefType>())
OpenPOWER on IntegriCloud