You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@assert~(vn inkeys(vi)) "[push!!] attempt to add an exisitng variable $(getsym(vn)) ($(vn)) to VarInfo (keys=$(keys(vi))) with dist=$dist, gid=$gidset"
1607
+
@assert~(vn inkeys(vi)) "[push!!] attempt to add an existing variable $(getsym(vn)) ($(vn)) to VarInfo (keys=$(keys(vi))) with dist=$dist, gid=$gidset"
1602
1608
elseif vi isa TypedVarInfo
1603
-
@assert~(haskey(vi, vn)) "[push!!] attempt to add an exisitng variable $(getsym(vn)) ($(vn)) to TypedVarInfo of syms $(syms(vi)) with dist=$dist, gid=$gidset"
1609
+
@assert~(haskey(vi, vn)) "[push!!] attempt to add an existing variable $(getsym(vn)) ($(vn)) to TypedVarInfo of syms $(syms(vi)) with dist=$dist, gid=$gidset"
1604
1610
end
1605
1611
1606
1612
val =vectorize(dist, r)
1607
-
1608
-
meta =getmetadata(vi, vn)
1609
-
meta.idcs[vn] =length(meta.idcs) +1
1610
-
push!(meta.vns, vn)
1611
-
l =length(meta.vals)
1612
-
n =length(val)
1613
-
push!(meta.ranges, (l +1):(l + n))
1614
-
append!(meta.vals, val)
1615
-
push!(meta.dists, dist)
1616
-
push!(meta.gids, gidset)
1617
-
push!(meta.orders, get_num_produce(vi))
1618
-
push!(meta.flags["del"], false)
1619
-
push!(meta.flags["trans"], false)
1613
+
sym =getsym(vn)
1614
+
if vi isa TypedVarInfo &&~haskey(vi.metadata, sym)
1615
+
# The NamedTuple doesn't have an entry for this variable, let's add one.
0 commit comments