Skip to content

Commit d4e1873

Browse files
committed
Take 3, maybe fixes #312
1 parent a1107d5 commit d4e1873

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modeling/graphs.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,9 @@ function prepare_rhs_for_storage!(ls::LoopSet, RHS::Union{Symbol,Expr}, array, r
11601160
add_operation!(ls, lrhs, RHS, mpref, elementbytes, position)
11611161
mpref.parents = cachedparents
11621162
op = add_store!(ls, mpref, elementbytes)
1163-
ls.syms_aliasing_refs[findfirst(==(mpref.mref), ls.refs_aliasing_syms)] = lrhs
1163+
if lrhs keys(ls.opdict)
1164+
ls.syms_aliasing_refs[findfirst(==(mpref.mref), ls.refs_aliasing_syms)] = lrhs
1165+
end
11641166
return op
11651167
end
11661168

0 commit comments

Comments
 (0)