Skip to content

Commit 488fb5a

Browse files
vtjnashtkelman
authored andcommitted
preserve inline line numbers during inlining
(cherry picked from commit a33cd07) ref #13491
1 parent eb31eef commit 488fb5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/inference.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,8 +2245,7 @@ function inlineable(f::ANY, e::Expr, atype::ANY, sv::StaticVarInfo, enclosing_as
22452245
end
22462246

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

0 commit comments

Comments
 (0)