Commit 16e6df98 authored by Russ Cox's avatar Russ Cox

fix 386 a[i] = cmplx(r, j)

R=ken2
CC=golang-dev
https://golang.org/cl/384043
parent 270ab186
......@@ -92,12 +92,6 @@ cgen(Node *n, Node *res)
break;
}
// complex types
if(complexop(n, res)) {
complexgen(n, res);
return;
}
// if both are addressable, move
if(n->addable && res->addable) {
gmove(n, res);
......@@ -123,6 +117,12 @@ cgen(Node *n, Node *res)
return;
}
// complex types
if(complexop(n, res)) {
complexgen(n, res);
return;
}
// otherwise, the result is addressable but n is not.
// let's do some computation.
......
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