projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf65a0
)
Use isa instead of dyn_cast as cast value isn't used.
author
Jacques Pienaar
<jpienaar@google.com>
Sun, 7 Jul 2019 21:04:46 +0000
(14:04 -0700)
committer
A. Unique TensorFlower
<gardener@tensorflow.org>
Sun, 7 Jul 2019 21:05:16 +0000
(14:05 -0700)
Avoids unused variable warning.
PiperOrigin-RevId:
256874512
mlir/lib/StandardOps/Ops.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/StandardOps/Ops.cpp
b/mlir/lib/StandardOps/Ops.cpp
index 1e7a8404c9d0991025858be5cd9cc07357aa940d..3be51e67186d6042ed16aaeba0c23a663bd6996f 100644
(file)
--- 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<RankedTensorType>())
return build->getTensorType(tensorType.getShape(), i1Type);
- if (
auto tensorType = type.dyn_cast
<UnrankedTensorType>())
+ if (
type.isa
<UnrankedTensorType>())
return build->getTensorType(i1Type);
if (auto vectorType = type.dyn_cast<VectorType>())
return build->getVectorType(vectorType.getShape(), i1Type);