summaryrefslogtreecommitdiffstats
path: root/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/lib/Transforms/TestVectorizationUtils.cpp')
-rw-r--r--mlir/test/lib/Transforms/TestVectorizationUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lib/Transforms/TestVectorizationUtils.cpp b/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
index 6f4d948e55f..eed7c83a684 100644
--- a/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
+++ b/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
@@ -116,7 +116,7 @@ void VectorizerTestPass::testVectorShapeRatio(llvm::raw_ostream &outs) {
// As a consequence we write only Ops with a single return type for the
// purpose of this test. If we need to test more intricate behavior in the
// future we can always extend.
- auto superVectorType = opInst->getResult(0)->getType().cast<VectorType>();
+ auto superVectorType = opInst->getResult(0).getType().cast<VectorType>();
auto ratio = shapeRatio(superVectorType, subVectorType);
if (!ratio.hasValue()) {
opInst->emitRemark("NOT MATCHED");
OpenPOWER on IntegriCloud