go.tools/ssa: remove workaround for missing go/types check, now fixed.

R=gri
CC=golang-dev
https://golang.org/cl/10921043
This commit is contained in:
Alan Donovan 2013-07-03 17:54:55 -04:00
parent ea8ba6f45b
commit 3b6580d5b4
1 changed files with 2 additions and 7 deletions

View File

@ -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)