Skip to content

Commit 1d2f7aa

Browse files
ranochaJameson Nash
andcommitted
apply suggestion from code review
Co-authored-by: Jameson Nash <jameson@juliacomputing.com>
1 parent 3ead663 commit 1d2f7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/reflection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ true
627627
!!! compat "Julia 1.5"
628628
This function requires at least Julia 1.5.
629629
"""
630-
ismutable(@nospecialize(x)) = (@_total_meta; (typeof(x).name::Core.TypeName).flags & 0x2 == 0x2)
630+
ismutable(@nospecialize(x)) = (@_total_meta; (inferencebarrier(typeof(x))::DataType).name.flags & 0x2 == 0x2)
631631
# The type assertion above is required to fix some invalidations.
632632
# See also https://github.com/JuliaLang/julia/issues/52134
633633

0 commit comments

Comments
 (0)