[dev.ssa] cmd/compile/ssa: handle loops that don't loop
Loops such as func f(c chan int) int { for x := range c { return x } return 0 } don't loop. Remove the assumption that they must. Partly fixes the build. Change-Id: I766cebeec8e36d14512bea26f54c06c8eaf95e23 Reviewed-on: https://go-review.googlesource.com/11876Reviewed-by:Keith Randall <khr@golang.org>
Showing
Please register or sign in to comment