Skip to content

Commit 3f8465a

Browse files
committed
fix
1 parent 1fa9a85 commit 3f8465a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Compiler/src/tfuncs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,6 +2096,7 @@ end
20962096
@nospecs function memoryref_tfunc(𝕃::AbstractLattice, ref, idx, boundscheck)
20972097
memoryref_builtin_common_errorcheck(ref, Const(:not_atomic), boundscheck) || return Bottom
20982098
hasintersect(widenconst(idx), Int) || return Bottom
2099+
hasintersect(widenconst(ref), GenericMemory) && return memoryref_tfunc(𝕃, ref)
20992100
return ref
21002101
end
21012102
add_tfunc(memoryrefnew, 1, 3, memoryref_tfunc, 1)

0 commit comments

Comments
 (0)