Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tehrengruber committed Dec 2, 2024
1 parent bd02cc7 commit 7c271ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gt4py/next/iterator/transforms/fuse_as_fieldop.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _canonicalize_as_fieldop(expr: itir.FunCall) -> itir.FunCall:
if cpm.is_ref_to(stencil, "deref"):
stencil = im.lambda_("arg")(im.deref("arg"))
new_expr = im.as_fieldop(stencil, domain)(*expr.args)
type_inference.copy_type(from_=expr, to=new_expr)
type_inference.copy_type(from_=expr, to=new_expr, allow_untyped=True)

return new_expr

Expand Down Expand Up @@ -164,7 +164,7 @@ def fuse_as_fieldop(
)
new_node = inline_lifts.InlineLifts().visit(new_node)

type_inference.copy_type(from_=expr, to=new_node)
type_inference.copy_type(from_=expr, to=new_node, allow_untyped=True)

return new_node

Expand Down

0 comments on commit 7c271ca

Please sign in to comment.