Skip to content

Commit

Permalink
fix call args inlining length bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jun 9, 2014
1 parent 5b91981 commit 31969bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,15 @@ function inlineable(f, e::Expr, atypes, sv, enclosing_ast)
argexprs = {argexprs[1:(na-1)]..., vararg}
isva = true
end
elseif na != length(argexprs)
# we have a method match only because an earlier
# inference step shortened our call args list, even
# though we have too many arguments to actually
# call this function
@assert isvarargtype(atypes[na])
return NF
end

@assert na == length(argexprs)

if needcopy
Expand Down

0 comments on commit 31969bf

Please sign in to comment.