Skip to content

Commit 1c3115c

Browse files
committed
Revert cause of bug while keeping type checking
1 parent d31bce3 commit 1c3115c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kirin/dialects/scf/stmts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
then_body_block = None
4242
else: # then_body.IS_BLOCK:
4343
then_body_block = cast(Block, then_body)
44-
then_body_region = cast(Region, then_body)
44+
then_body_region = Region(then_body_block)
4545

4646
if else_body is None:
4747
else_body_region = ir.Region()

0 commit comments

Comments
 (0)