mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: remove oconv(op, 0) calls
Updates #15462 Automatic refactor with sed -e. Replace all oconv(op, 0) to string conversion with the raw op value which fmt's %v verb can print directly. The remaining oconv(op, FmtSharp) will be replaced with op.GoString and %#v in the next CL. Change-Id: I5e2f7ee0bd35caa65c6dd6cb1a866b5e4519e641 Reviewed-on: https://go-review.googlesource.com/22499 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
cbd72318b9
commit
d3c79d324a
18 changed files with 77 additions and 77 deletions
|
|
@ -695,7 +695,7 @@ func evconst(n *Node) {
|
|||
switch uint32(n.Op)<<16 | uint32(v.Ctype()) {
|
||||
default:
|
||||
if n.Diag == 0 {
|
||||
Yyerror("illegal constant expression %v %v", oconv(n.Op, 0), nl.Type)
|
||||
Yyerror("illegal constant expression %v %v", n.Op, nl.Type)
|
||||
n.Diag = 1
|
||||
}
|
||||
return
|
||||
|
|
@ -1179,7 +1179,7 @@ setfalse:
|
|||
|
||||
illegal:
|
||||
if n.Diag == 0 {
|
||||
Yyerror("illegal constant expression: %v %v %v", nl.Type, oconv(n.Op, 0), nr.Type)
|
||||
Yyerror("illegal constant expression: %v %v %v", nl.Type, n.Op, nr.Type)
|
||||
n.Diag = 1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue