diff options
Diffstat (limited to 'mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp')
-rw-r--r-- | mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp index 3e434ea..5bd1d49 100644 --- a/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp +++ b/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp @@ -49,7 +49,7 @@ static void getTreePredicates(std::vector<PositionalPredicate> &predList, assert(isa<pdl::AttributeType>(val.getType()) && "expected attribute type"); predList.emplace_back(pos, builder.getIsNotNull()); - if (auto attr = dyn_cast<pdl::AttributeOp>(val.getDefiningOp())) { + if (auto attr = val.getDefiningOp<pdl::AttributeOp>()) { // If the attribute has a type or value, add a constraint. if (Value type = attr.getValueType()) getTreePredicates(predList, type, builder, inputs, builder.getType(pos)); |