mirror of
https://github.com/golang/go
synced 2024-11-18 19:44:46 -07:00
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:
parent
ea8ba6f45b
commit
3b6580d5b4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user