Skip to content

Commit 001587a

Browse files
authored
Correct missing defn of crule in iterator
1 parent f00035c commit 001587a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/interface.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ function conventionalize(crules::Tuple)
5050
function(∇)
5151
ntuple(length(crules) + 1) do ii
5252
# first arg is nothing. See TODO above.
53-
ii==1 ? nothing : conventionalize1(crule(∇))
53+
ii==1 && return nothing
54+
crule = crules[ii - 1]
55+
conventionalize1(crule(∇))
5456
end
5557
end
5658
end

0 commit comments

Comments
 (0)