diff --git a/ssa/builder.go b/ssa/builder.go index 0f5480d3..e89a1ffa 100644 --- a/ssa/builder.go +++ b/ssa/builder.go @@ -2139,13 +2139,8 @@ start: case token.GOTO: block = fn.labelledBlock(s.Label)._goto } - if block == nil { - // TODO(gri): fix: catch these in the typechecker. - fmt.Printf("ignoring illegal branch: %s %s\n", s.Tok, s.Label) - } else { - emitJump(fn, block) - fn.currentBlock = fn.newBasicBlock("unreachable") - } + emitJump(fn, block) + fn.currentBlock = fn.newBasicBlock("unreachable") case *ast.BlockStmt: b.stmtList(fn, s.List)