Skip to content

Commit 5320dd7

Browse files
committed
Replace get! with get to avoid unnecessary state initialization
1 parent e9a96bd commit 5320dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ end
743743

744744
function cse_state!(state, t)
745745
!iscall(t) && return t
746-
state[t] = Base.get!(state, t, 0) + 1
746+
state[t] = Base.get(state, t, 0) + 1
747747
foreach(x->cse_state!(state, x), unsorted_arguments(t))
748748
end
749749

0 commit comments

Comments
 (0)