From: Russ Cox Date: Sat, 6 Mar 2010 03:29:14 +0000 (-0800) Subject: gc: fix crash on complicated arg to make slice. X-Git-Tag: weekly.2010-03-15~47 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a9b9afa9305b1ddaeb82291b7a31445b0879f630;p=gostls13.git gc: fix crash on complicated arg to make slice. Fixes #615. R=ken2 CC=golang-dev https://golang.org/cl/255043 --- diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 5ee82eeac7..1f7312e5e0 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]));