Commit 1b7881ad authored by Russ Cox's avatar Russ Cox

fix:

	type T []int
	var a []int
	var t = T(a)

R=ken
OCL=22341
CL=22341
parent d54abad0
......@@ -415,6 +415,12 @@ agen(Node *n, Node *res)
fatal("agen: unknown op %N", n);
break;
case OCONV:
if(!eqtype(n->type, nl->type, 0))
fatal("agen: non-trivial OCONV");
agen(nl, res);
return;
case OCALLMETH:
cgen_callmeth(n, 0);
cgen_aret(n, res);
......
......@@ -563,8 +563,10 @@ loop:
// nil conversion
if(eqtype(t, l->type, 0)) {
if(l->op != ONAME)
if(l->op != ONAME) {
indir(n, l);
n->type = t;
}
goto ret;
}
......
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