From 7e74ee8ff7e3e9812a7731bd2ee00bfa03ddeeea Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Sun, 7 Jul 2019 14:04:46 -0700 Subject: [PATCH] Use isa instead of dyn_cast as cast value isn't used. Avoids unused variable warning. PiperOrigin-RevId: 256874512 --- mlir/lib/StandardOps/Ops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/StandardOps/Ops.cpp b/mlir/lib/StandardOps/Ops.cpp index 1e7a840..3be51e6 100644 --- a/mlir/lib/StandardOps/Ops.cpp +++ b/mlir/lib/StandardOps/Ops.cpp @@ -558,7 +558,7 @@ static Type getCheckedI1SameShape(Builder *build, Type type) { return i1Type; if (auto tensorType = type.dyn_cast()) return build->getTensorType(tensorType.getShape(), i1Type); - if (auto tensorType = type.dyn_cast()) + if (type.isa()) return build->getTensorType(i1Type); if (auto vectorType = type.dyn_cast()) return build->getVectorType(vectorType.getShape(), i1Type); -- 2.7.4