functions: fix handling of panics in Terminates
When we modified our IR to emit a single exit block, we didn't
correctly account for explicit panics leading to the exit block.
Closes
@@ -34,6 +34,16 @@ func fn4() {
}()
}
+func fn5() {
+ if false {
+ panic("foo")
+ }
+ for range time.Tick(0) {
+ println("")
+ }
+}
+
+
type T struct{}
func (t *T) foo() {
