Commit ad73dc34 authored by David du Colombier's avatar David du Colombier

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/4814Reviewed-by: 's avatarMinux Ma <minux@golang.org>
Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent ae3229ae
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment