From 3b6580d5b42bfab3e2c2ba331d583d2edd594060 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Wed, 3 Jul 2013 17:54:55 -0400 Subject: [PATCH] go.tools/ssa: remove workaround for missing go/types check, now fixed. R=gri CC=golang-dev https://golang.org/cl/10921043 --- ssa/builder.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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)