summaryrefslogtreecommitdiff
path: root/src/cmd/gc/walk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/walk.c')
-rw-r--r--src/cmd/gc/walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c
index 5ee82eeac..1f7312e5e 100644
--- a/src/cmd/gc/walk.c
+++ b/src/cmd/gc/walk.c
@@ -1078,7 +1078,7 @@ walkexpr(Node **np, NodeList **init)
t = n->type;
fn = syslook("makeslice", 1);
argtype(fn, t->type); // any-1
- n = mkcall1(fn, n->type, nil,
+ n = mkcall1(fn, n->type, init,
typename(n->type),
conv(n->left, types[TINT]),
conv(n->right, types[TINT]));