diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -1586,7 +1586,7 @@ // A region with the given number of blocks. class SizedRegion : Region< - CPred<"$_self.getBlocks().size() == " # numBlocks>, + CPred<"llvm::hasNItems($_self, " # numBlocks # ")">, "region with " # numBlocks # " blocks">; // A variadic region constraint. It expands to zero or more of the base region.