[Mlir-commits] [mlir] [mlir][func] Fix ReturnOp issue #112146 (PR #112385)
Fabian Mora
llvmlistbot at llvm.org
Tue Oct 29 13:23:12 PDT 2024
fabianmcg wrote:
> Can this be triggered in a test?
On a LIT test, no, only unit test. There are very few places upstream using this interface, dataflow being one of them.
The reason dataflow doesn't trigger it is because dataflow always makes sure the parent op is `RegionBranchOp`.
I stumbled upon this assert when I was testing the interface for building the CFG, and I didn't check if the parent was valid.
https://github.com/llvm/llvm-project/pull/112385
More information about the Mlir-commits
mailing list