summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/Traits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Dialect/Traits.cpp')
-rw-r--r--mlir/lib/Dialect/Traits.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Dialect/Traits.cpp b/mlir/lib/Dialect/Traits.cpp
index 744500af663..11aea0936f2 100644
--- a/mlir/lib/Dialect/Traits.cpp
+++ b/mlir/lib/Dialect/Traits.cpp
@@ -163,9 +163,9 @@ LogicalResult OpTrait::impl::verifyCompatibleOperandBroadcast(Operation *op) {
assert(op->getNumResults() == 1 &&
"only support broadcast check on one result");
- auto type1 = op->getOperand(0)->getType();
- auto type2 = op->getOperand(1)->getType();
- auto retType = op->getResult(0)->getType();
+ auto type1 = op->getOperand(0).getType();
+ auto type2 = op->getOperand(1).getType();
+ auto retType = op->getResult(0).getType();
// We forbid broadcasting vector and tensor.
if (hasBothVectorAndTensorType({type1, type2, retType}))
OpenPOWER on IntegriCloud