cmd/compile: more nodeSeq conversions

Found by temporarily flipping fields from *NodeList to Nodes and fixing
all the compilation errors.  This CL does not actually change any
fields.

Passes toolstash -cmp.

Update #14473.

Change-Id: Ib98fa37e8752f96358224c973a743618a6a0e736
Reviewed-on: https://go-review.googlesource.com/20320
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2016-03-07 09:36:24 -08:00
parent c3dfad5df9
commit 2a68c6c27c
15 changed files with 234 additions and 229 deletions

View file

@ -26,12 +26,12 @@ func unsafenmagic(nn *Node) *Node {
return nil
}
if args == nil {
if nodeSeqLen(args) == 0 {
Yyerror("missing argument for %v", s)
return nil
}
r := args.N
r := nodeSeqFirst(args)
var v int64
if s.Name == "Sizeof" {
@ -129,7 +129,7 @@ bad:
goto ret
yes:
if args.Next != nil {
if nodeSeqLen(args) > 1 {
Yyerror("extra arguments for %v", s)
}