Skip to content

Commit

Permalink
Fix bug in snoopi_deep: missing copy() on slottypes array
Browse files Browse the repository at this point in the history
The slottypes array is reused and modified, so we need to make a copy of
it for each inference frame. This was a bug accidentally introduced in #38143
  • Loading branch information
NHDaly committed Oct 28, 2020
1 parent 5d8225a commit ea6cdf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/typeinfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function _typeinf_identifier(frame::Core.Compiler.InferenceState)
frame.linfo,
frame.world,
copy(frame.sptypes),
frame.slottypes,
copy(frame.slottypes),
)
return mi_info
end
Expand Down

0 comments on commit ea6cdf3

Please sign in to comment.