mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: rename Fatal to Fatalf
This helps vet see a real issue:
cmd/internal/gc$ go vet
gen.go:1223: unreachable code
Fixes #12106.
Change-Id: I720868b07ae6b6d5a4dc6b238baa8c9c889da6d8
Reviewed-on: https://go-review.googlesource.com/14083
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
af799d94f9
commit
3c9fa388df
56 changed files with 481 additions and 481 deletions
|
|
@ -81,7 +81,7 @@ func (n *Node) SetVal(v Val) {
|
|||
if n.hasVal == -1 {
|
||||
Debug['h'] = 1
|
||||
Dump("have Opt", n)
|
||||
Fatal("have Opt")
|
||||
Fatalf("have Opt")
|
||||
}
|
||||
n.hasVal = +1
|
||||
n.E = v.U
|
||||
|
|
@ -104,7 +104,7 @@ func (n *Node) SetOpt(x interface{}) {
|
|||
if n.hasVal == +1 {
|
||||
Debug['h'] = 1
|
||||
Dump("have Val", n)
|
||||
Fatal("have Val")
|
||||
Fatalf("have Val")
|
||||
}
|
||||
n.hasVal = -1
|
||||
n.E = x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue