You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the catch block and the for loop condition copy are missing their line number nodes, causing them to inherit the line number from whatever the previous context happened to be. this breaks backtraces and track malloc.
julia>functiontry_stacktrace()
trybad_function()
catchreturnstacktrace()
endend
try_stacktrace (generic function with 1 method)
julia>@code_loweredtry_stacktrace()
1-element Array{Any,1}:
:($(Expr(:lambda, Any[symbol("#self#")], Any[Any[Any[symbol("#self#"),:Any,0]],Any[],1], :(begin# none, line 2:$(Expr(:enter, 0)) # none, line 3:GenSym(0) = (Main.bad_function)()
$(Expr(:leave, 1))
returnGenSym(0)
0:$(Expr(:leave, 1))
return (Main.stacktrace)()
end))))
julia>functiona()
for i =1:100b(i)
endend
a (generic function with 1 method)
julia>@code_lowereda()
1-element Array{Any,1}:
:($(Expr(:lambda, Any[symbol("#self#")], Any[Any[Any[symbol("#self#"),:Any,0],Any[symbol("#s1"),:Any,2],Any[:i,:Any,18]],Any[],2], :(begin# none, line 2:GenSym(0) = (Main.colon)(1,100)
#s1 = (top(start))(GenSym(0))
unless (top(!))((top(done))(GenSym(0),#s1)) goto 12:GenSym(1) = (top(next))(GenSym(0),#s1)
i = (top(getfield))(GenSym(1),1)
#s1 = (top(getfield))(GenSym(1),2) # none, line 3:
(Main.b)(i)
3:
unless (top(!))((top(!))((top(done))(GenSym(0),#s1))) goto 21:0:returnend))))
the
catch
block and thefor
loop condition copy are missing their line number nodes, causing them to inherit the line number from whatever the previous context happened to be. this breaks backtraces and track malloc.ref #14469
The text was updated successfully, but these errors were encountered: