Skip to content

Commit

Permalink
Fix (hack?) inference test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Aug 17, 2017
1 parent 3d9ee57 commit 5d21c6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4391,6 +4391,7 @@ function inlineable(@nospecialize(f), @nospecialize(ft), e::Expr, atypes::Vector
# where we can't easily correct it afterwards.
frame = InferenceState(linfo, #=optimize=#true, #=cache=#false, sv.params)
frame.stmt_types[1][3] = VarState(atypes[3], false)
frame.src.slottypes[3] = atypes[3]
typeinf(frame)
else
if isdefined(linfo, :inferred) && linfo.inferred !== nothing
Expand Down

0 comments on commit 5d21c6a

Please sign in to comment.