This patch fixes a crash caused when the transform library interpreter is given an IR that fails to parse.
12 lines
456 B
MLIR
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
|
|
}
|
|
}
|