Skip to content

Commit 4d0b588

Browse files
committed
Fix loop not defined in terminatecond.
1 parent fa051fd commit 4d0b588

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/loopstartstopmanager.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ end
271271
function terminatecondition(ls::LoopSet, us::UnrollSpecification, n::Int, inclmask::Bool, UF::Int)
272272
lssm = ls.lssm[]
273273
termind = lssm.terminators[n]
274-
iszero(termind) && return terminatecondition(getloop(ls, names(ls)[n]), us, n, loop.itersymbol, inclmask, UF)
274+
if iszero(termind)
275+
loop = getloop(ls, names(ls)[n])
276+
return terminatecondition(loop, us, n, loop.itersymbol, inclmask, UF)
277+
end
275278

276279
termar = lssm.incrementedptrs[n][termind]
277280
ptr = vptr(termar)

0 commit comments

Comments
 (0)