diff --git a/mlir/python/mlir/dialects/_scf_ops_ext.py b/mlir/python/mlir/dialects/_scf_ops_ext.py --- a/mlir/python/mlir/dialects/_scf_ops_ext.py +++ b/mlir/python/mlir/dialects/_scf_ops_ext.py @@ -52,7 +52,7 @@ ip=ip, ) ) - self.regions[0].blocks.append(IndexType.get(), *results) + self.regions[0].blocks.append(self.operands[0].type, *results) @property def body(self):