summaryrefslogtreecommitdiff
path: root/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
diff options
context:
space:
mode:
authorLucas Ramirez <11032120+lucas-rami@users.noreply.github.com>2025-07-25 04:38:20 -0700
committerAmir Ayupov <aaupov@fb.com>2025-07-25 04:38:20 -0700
commitf45382b8900a58374b1395a7dd03d7f40085faf3 (patch)
treeeddff09d0f6bff927ae0866a4c817b6aef84707b /mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
parent832d1b1c812acff0a2e01799a0a59d69ebcc7d25 (diff)
parente38f98f535f6e2ce2b42ea0413919f87b1239964 (diff)
[𝘀𝗽𝗿] changes introduced through rebaseusers/aaupov/spr/main.bolt-require-cfg-in-bat-mode
Created using spr 1.3.4 [skip ci]
Diffstat (limited to 'mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp')
-rw-r--r--mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
index 3e434ea7e14c..5bd1d49dae0c 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));