We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61e51f commit b7cb784Copy full SHA for b7cb784
src/kirin/dialects/scf/stmts.py
@@ -41,7 +41,7 @@ def __init__(
41
then_body_block = None
42
else: # then_body.IS_BLOCK:
43
then_body_block = cast(Block, then_body)
44
- then_body_region = cast(Region, then_body)
+ then_body_region = Region(then_body_block)
45
46
if else_body is None:
47
else_body_region = ir.Region()
0 commit comments