Skip to content

Commit

Permalink
preserve inline line numbers during inlining
Browse files Browse the repository at this point in the history
(cherry picked from commit a33cd07)
ref #13491
  • Loading branch information
vtjnash authored and tkelman committed Nov 29, 2015
1 parent eb31eef commit 488fb5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2245,8 +2245,7 @@ function inlineable(f::ANY, e::Expr, atype::ANY, sv::StaticVarInfo, enclosing_as
end

body = Expr(:block)
body.args = filter(x->!((isa(x,Expr) && is(x.head,:line)) || isa(x,LineNumberNode)),
ast.args[3].args::Array{Any,1})
body.args = ast.args[3].args::Array{Any,1}
cost::Int = 1000
if incompletematch
cost *= 4
Expand Down

0 comments on commit 488fb5a

Please sign in to comment.