Skip to content

Commit 4fb6daa

Browse files
committed
Don't lookup for indexed_iterate
1 parent 68ab65d commit 4fb6daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/reverse.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function instrument_getindex!(ir, v, ex)
9999
end
100100

101101
function instrument_iterate!(ir, v, ex)
102-
func = trylookup(ir.from, ex.args[1])
102+
func = ex.args[1]
103103
if func == GlobalRef(Base, :indexed_iterate) && length(ex.args) >= 3
104104
obj, idx, rest = ex.args[2], trylookup(ir.from, ex.args[3]), ex.args[4:end]
105105
if idx isa Union{QuoteNode,Integer}

0 commit comments

Comments
 (0)