ExpandedExceptionVisitor memory error

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-09-06 16:18:21 -07:00
parent 2163a5c6b9
commit 26be60906c
1 changed files with 31 additions and 29 deletions

View File

@ -2159,6 +2159,7 @@ ExpandedExceptionVisitor::expandThru(ExceptionFrom *expanded_from,
ExceptionThruSeq::Iterator &thru_iter, ExceptionThruSeq::Iterator &thru_iter,
ExceptionThruSeq *expanded_thrus) ExceptionThruSeq *expanded_thrus)
{ {
if (exception_->thrus()) {
if (thru_iter.hasNext()) { if (thru_iter.hasNext()) {
ExceptionThru *thru = thru_iter.next(); ExceptionThru *thru = thru_iter.next();
const RiseFallBoth *rf = thru->transition(); const RiseFallBoth *rf = thru->transition();
@ -2193,6 +2194,7 @@ ExpandedExceptionVisitor::expandThru(ExceptionFrom *expanded_from,
} }
} }
} }
}
else else
// End of thrus tail recursion. // End of thrus tail recursion.
expandTo(expanded_from, expanded_thrus); expandTo(expanded_from, expanded_thrus);