[Mlir-commits] [mlir] [MLIR][Analysis] Fix incorrect RegionBranchOpInterface API usage in SliceWalk (PR #188758)

Hocky Yudhiono llvmlistbot at llvm.org
Wed Apr 1 01:13:57 PDT 2026


================
@@ -83,12 +89,20 @@ mlir::getControlFlowPredecessors(Value value) {
   if (block->isEntryBlock()) {
     if (auto regionBranchOp =
             dyn_cast<RegionBranchOpInterface>(block->getParentOp())) {
-      RegionSuccessor region(blockArg.getParentRegion());
+      RegionSuccessor regionSuccessor(blockArg.getParentRegion());
----------------
hockyy wrote:

This looks correct but I feel the testcases has not tested this part yet.

https://github.com/llvm/llvm-project/pull/188758


More information about the Mlir-commits mailing list