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
This commit is contained in:
Jevin Jiang 2023-09-21 08:06:44 +00:00 committed by Alex Zinenko
parent 8362cae71b
commit 3d51b40c4a

View File

@ -52,7 +52,7 @@ class ForOp:
ip=ip,
)
)
self.regions[0].blocks.append(IndexType.get(), *results)
self.regions[0].blocks.append(self.operands[0].type, *results)
@property
def body(self):