Skip to content

Commit 3d51b40

Browse files
bythew3iftynse
authored andcommitted
Fix induction variable type in scf.for py binding.
- make sure that the type of induction variable should be determined by the type of the lower bound type. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D159534
1 parent 8362cae commit 3d51b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/python/mlir/dialects/_scf_ops_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
ip=ip,
5353
)
5454
)
55-
self.regions[0].blocks.append(IndexType.get(), *results)
55+
self.regions[0].blocks.append(self.operands[0].type, *results)
5656

5757
@property
5858
def body(self):

0 commit comments

Comments
 (0)