Skip to content

Commit 1916d35

Browse files
authored
add nospecialize to deepcopy entry point (#46692)
1 parent d97dd8e commit 1916d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/deepcopy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ so far within the recursion. Within the definition, `deepcopy_internal` should b
2121
in place of `deepcopy`, and the `dict` variable should be
2222
updated as appropriate before returning.
2323
"""
24-
function deepcopy(x)
24+
function deepcopy(@nospecialize x)
2525
isbitstype(typeof(x)) && return x
2626
return deepcopy_internal(x, IdDict())::typeof(x)
2727
end

0 commit comments

Comments
 (0)