Skip to content

Commit

Permalink
Update rewriters.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Jun 2, 2024
1 parent 33b274b commit 2dc3ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rewriters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function (p::Walk{ord, C, F, false})(x) where {ord, C, F}

if iscall(x)
x = p.maketerm(x, operation(x), map(PassThrough(p),
unsorted_arguments(x)), metadata=metadata(x))
unsorted_arguments(x)), metadata(x))
end

return ord === :post ? p.rw(x) : x
Expand All @@ -245,7 +245,7 @@ function (p::Walk{ord, C, F, true})(x) where {ord, C, F}
end
end
args = map((t,a) -> passthrough(t isa Task ? fetch(t) : t, a), _args, arguments(x))
t = p.maketerm(x, operation(x), args, metadata=metadata(x))
t = p.maketerm(x, operation(x), args, metadata(x))
end
return ord === :post ? p.rw(t) : t
else
Expand Down

0 comments on commit 2dc3ed1

Please sign in to comment.