Skip to content

Commit 65ed539

Browse files
committed
pipe: delete branches
1 parent c319cc9 commit 65ed539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ir/ir.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ function iterate(p::Pipe, (ks, b, i) = (pipestate(p.from), 1, 1))
881881
end
882882
if i > length(ks[b])
883883
for br in branches(block(p.from, b))
884-
push!(p.to.blocks[end].branches, map(substitute(p), p.branch(br)))
884+
br′ = p.branch(br)
885+
br′ == nothing || push!(p.to.blocks[end].branches, map(substitute(p), br′))
885886
end
886887
b == length(ks) && return
887888
block!(p.to)

0 commit comments

Comments
 (0)