mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: use int32 for line numbers consistently
- removed lots of unnecessary int(x) casts - removed parserline() - was inconsistently used anyway - minor simplifications in dcl.go Change-Id: Ibf7de679eea528a31c9692ef1c76a1d9b3239211 Reviewed-on: https://go-review.googlesource.com/20131 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
053aef4f1b
commit
b83f3972fe
20 changed files with 87 additions and 105 deletions
|
|
@ -2142,7 +2142,7 @@ func needwritebarrier(l *Node, r *Node) bool {
|
|||
func applywritebarrier(n *Node) *Node {
|
||||
if n.Left != nil && n.Right != nil && needwritebarrier(n.Left, n.Right) {
|
||||
if Debug_wb > 1 {
|
||||
Warnl(int(n.Lineno), "marking %v for barrier", Nconv(n.Left, 0))
|
||||
Warnl(n.Lineno, "marking %v for barrier", Nconv(n.Left, 0))
|
||||
}
|
||||
n.Op = OASWB
|
||||
return n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue