Skip to content

Commit

Permalink
apply suggestion from code review
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
ranocha and vtjnash committed Nov 15, 2023
1 parent 3ead663 commit 3f5436c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ true
!!! compat "Julia 1.5"
This function requires at least Julia 1.5.
"""
ismutable(@nospecialize(x)) = (@_total_meta; (typeof(x).name::Core.TypeName).flags & 0x2 == 0x2)
ismutable(@nospecialize(x)) = (@_total_meta; (inferencebarrier(typeof(x))::DataType).name.flags & 0x2 == 0x2)
# The type assertion above is required to fix some invalidations.
# See also https://github.com/JuliaLang/julia/issues/52134

Expand Down

0 comments on commit 3f5436c

Please sign in to comment.