diff --git a/base/stacktraces.jl b/base/stacktraces.jl index a8d588326be3b..a4d153dd4d898 100644 --- a/base/stacktraces.jl +++ b/base/stacktraces.jl @@ -206,7 +206,6 @@ Base.@constprop :none function lookup(pointer::Ptr{Cvoid}) elseif miroots !== nothing linfo = lookup_inline_frame_info(func, file, miroots) end - linfo = linfo === nothing ? parentmodule(res[i + 1]) : linfo # e.g. `macro expansion` end res[i] = StackFrame(func, file, linenum, linfo, info[5]::Bool, info[6]::Bool, pointer) end