mirror of https://github.com/golang/go.git
cmd/gc: replace NULL by nil
In CL 4050, NULL was used instead of nil. However, Plan 9 doesn't declare NULL. Change-Id: I8295a3102509a1ce417278f23a37cbf65938cce1 Reviewed-on: https://go-review.googlesource.com/4814 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
ae3229ae5c
commit
ad73dc349b
|
|
@ -634,7 +634,7 @@ walkexpr(Node **np, NodeList **init)
|
|||
|
||||
// Append captured variables to argument list.
|
||||
n->list = concat(n->list, n->left->enter);
|
||||
n->left->enter = NULL;
|
||||
n->left->enter = nil;
|
||||
// Replace OCLOSURE with ONAME/PFUNC.
|
||||
n->left = n->left->closure->nname;
|
||||
// Update type of OCALLFUNC node.
|
||||
|
|
|
|||
Loading…
Reference in New Issue