[clang] [CIR] Fix building ClangIR after RegionBranchOpInterface revamp (PR #165441)
Mehdi Amini via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 28 11:00:22 PDT 2025
================
@@ -26,14 +26,16 @@ void LoopOpInterface::getLoopOpSuccessorRegions(
}
// Branching from condition: go to body or exit.
- if (&op.getCond() == point.getRegionOrNull()) {
- regions.emplace_back(mlir::RegionSuccessor(op->getResults()));
+ if (&op.getCond() ==
+ point.getTerminatorPredecessorOrNull()->getParentRegion()) {
----------------
joker-eph wrote:
```suggestion
if (&op.getCond() == parentRegion) {
```
https://github.com/llvm/llvm-project/pull/165441
More information about the cfe-commits
mailing list