Fix undefined-loop-variable
with NoReturn
and Never
#7476
Merged
undefined-loop-variable
with NoReturn
and Never
#7476