]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/gc: handle _ label correctly
authorKeith Randall <khr@golang.org>
Sun, 12 Jul 2015 18:52:09 +0000 (11:52 -0700)
committerKeith Randall <khr@golang.org>
Sun, 12 Jul 2015 20:43:01 +0000 (20:43 +0000)
commit7e4c06dad065d1440fe8fcfa8e97702c88e1374e
tree972e35b69432243911bd87a9469add915c082eab
parent4c521ac8f23e98898a2e1603a6e7a23648be27eb
[dev.ssa] cmd/compile/internal/gc: handle _ label correctly

An empty label statement can just be ignored, as it cannot
be the target of any gotos.

Tests are already in test/fixedbugs/issue7538*.go

Fixes #11589
Fixes #11593

Change-Id: Iadcd639e7200ce16aa40fd7fa3eaf82522513e82
Reviewed-on: https://go-review.googlesource.com/12093
Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/ssa.go