Skip to content

Commit

Permalink
fix invalidations related to ismutable
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Nov 14, 2023
1 parent e746ba4 commit 3ead663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ true
!!! compat "Julia 1.5"
This function requires at least Julia 1.5.
"""
ismutable(@nospecialize(x)) = (@_total_meta; typeof(x).name.flags & 0x2 == 0x2)
ismutable(@nospecialize(x)) = (@_total_meta; (typeof(x).name::Core.TypeName).flags & 0x2 == 0x2)
# The type assertion above is required to fix some invalidations.
# See also https://github.com/JuliaLang/julia/issues/52134

"""
ismutabletype(T) -> Bool
Expand Down

0 comments on commit 3ead663

Please sign in to comment.