diff --git a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp --- a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp +++ b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp @@ -159,10 +159,6 @@ if (failed(verifyTypesAlongAllEdges(op, llvm::None, inputTypesFromParent))) return failure(); - // RegionBranchOpInterface should not be implemented by Ops that do not have - // attached regions. - assert(op->getNumRegions() != 0); - auto areTypesCompatible = [&](TypeRange lhs, TypeRange rhs) { if (lhs.size() != rhs.size()) return false;