Skip to content

Commit 08fef61

Browse files
committed
push! needs to return
1 parent 61d3a3c commit 08fef61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/modeling/graphs.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ function add_assignment!(ls::LoopSet, LHS, RHS, elementbytes::Int, position::Int
11261126
for i eachindex(LHS.args)
11271127
add_assignment!(ls, LHS.args[i], RHS.args[i], elementbytes, position)
11281128
end
1129-
return
1129+
return last(operations(ls)) # FIXME: dummy
11301130
end
11311131
@assert length(LHS.args) 9 "Functions returning more than 9 values aren't currently supported."
11321132
lhstemp = gensym!(ls, "lhstuple")
@@ -1151,7 +1151,6 @@ function add_assignment!(ls::LoopSet, LHS, RHS, elementbytes::Int, position::Int
11511151
else
11521152
throw(LoopError("LHS not understood.", LHS))
11531153
end
1154-
nothing
11551154
end
11561155

11571156
function Base.push!(ls::LoopSet, ex::Expr, elementbytes::Int, position::Int)

0 commit comments

Comments
 (0)