Fix https://github.com/llvm/llvm-project/issues/60209
Fix crash with segmentation fault when transform::WithPDLPatternsOp is
applied with non-pattern op. Added check for existing transform ops with
pattern op.
Differential D143474
[mlir][transform] Fix apply WithPDLPatternsOp with non-pattern op sotoshigoto on Feb 7 2023, 12:43 AM. Authored by
Details Fix https://github.com/llvm/llvm-project/issues/60209 Fix crash with segmentation fault when transform::WithPDLPatternsOp is
Diff Detail
Event Timeline
Comment Actions That would trigger the exact same error as this patch is attempting to fix. Until this patch, we would allow "empty" WithPDLPatterns at the verifier level, but it could lead to crashes when applying the transformation. We can either disallow them, or fix the application so it does nothing. |
Nit: expand auto.