[Mlir-commits] [mlir] [mlir][transform] Fix crash in transform.get_parent_op. (PR #66492)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Sep 15 08:21:47 PDT 2023


================
@@ -1891,6 +1891,18 @@ transform.sequence failures(propagate) {
   test_print_number_of_associated_payload_ir_ops %4 : !transform.any_op
 }
 
+
+// -----
+
+// expected-note @below {{target op}}
+module {
+  transform.sequence  failures(propagate) {
+  ^bb0(%arg0: !pdl.operation):
+    // expected-error @below{{could not find a parent op that matches all requirements}}
+    %3 = get_parent_op %arg0 {op_name = "builtin.module"} : (!pdl.operation) -> !transform.any_op
----------------
ftynse wrote:

Nit: s/pdl.operation/transform.any_op

https://github.com/llvm/llvm-project/pull/66492


More information about the Mlir-commits mailing list