Commit a9b9afa9 authored by Russ Cox's avatar Russ Cox

gc: fix crash on complicated arg to make slice.

Fixes #615.

R=ken2
CC=golang-dev
https://golang.org/cl/255043
parent 067fe284
......@@ -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]));
......
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