This is no longer needed since we added the new
_slang_loop_contains_continue_or_break() function/test.
if (is_operation_type(&oper->children[1], SLANG_OPER_BREAK)
&& !haveElseClause) {
/* Special case: generate a conditional break */
- if (!A->CurLoop) /* probably trying to unroll */
- return NULL;
ifBody = new_break_if_true(A, cond);
return ifBody;
}
&& A->CurLoopOper
&& A->CurLoopOper->type != SLANG_OPER_FOR) {
/* Special case: generate a conditional continue */
- if (!A->CurLoop) /* probably trying to unroll */
- return NULL;
ifBody = new_cont_if_true(A, cond);
return ifBody;
}