Avoid generating empty loop bodies in for.