Commit 214ce4d
authored
[MLIR][Transform] Fix PrintOp::build with StringRef (#67052)
transform::PrintOp::build(OpBuilder &builder, OperationState &result,
StringRef name) does not set name correctly. Calling
PrintOp::build(builder, result, "whatever name") is going to end up with
a PrintOp with no name.
This patch fixes it by replicating the approach from tablegen created
code. Refer to
build/mlir/include/mlir/Dialect/Transform/IR/TransformOps.cpp.inc1 parent 0564065 commit 214ce4d
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2311 | 2311 | | |
2312 | 2312 | | |
2313 | 2313 | | |
2314 | | - | |
2315 | | - | |
2316 | | - | |
2317 | | - | |
| 2314 | + | |
| 2315 | + | |
2318 | 2316 | | |
2319 | 2317 | | |
2320 | 2318 | | |
| |||
0 commit comments