Kunwar Grover 282d501476
[mlir][Transform] Fix crash with invalid ir for transform libraries (#75649)
This patch fixes a crash caused when the transform library interpreter
is given an IR that fails to parse.
2023-12-19 23:16:19 +05:30

12 lines
456 B
MLIR

// RUN: mlir-opt %s --verify-diagnostics
// The only thing we check here is that it should fail to parse. The other
// check is in the preload test.
module attributes {transform.with_named_sequence} {
transform.named_sequence private @private_helper(%arg0: !transform.any_op {transform.readonly}) {
// expected-error @below {{expected ','}}
transform.test_print_remark_at_operand %arg0 "should have ',' prior to this" : !transform.any_op
}
}