mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: give gc.Op a String method, use it
Passes toolstash -cmp. Change-Id: I915e76374fd64aa2597e6fa47e4fa95ca00ca643 Reviewed-on: https://go-review.googlesource.com/22380 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
a6abc1cd70
commit
f027241445
6 changed files with 19 additions and 15 deletions
|
|
@ -1033,7 +1033,7 @@ func anylit(ctxt int, n *Node, var_ *Node, init *Nodes) {
|
|||
t := n.Type
|
||||
switch n.Op {
|
||||
default:
|
||||
Fatalf("anylit: not lit, op=%v node=%v", opnames[n.Op], n)
|
||||
Fatalf("anylit: not lit, op=%v node=%v", n.Op, n)
|
||||
|
||||
case OPTRLIT:
|
||||
if !t.IsPtr() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue