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) ...@@ -92,12 +92,6 @@ cgen(Node *n, Node *res)
break; break;
} }
// complex types
if(complexop(n, res)) {
complexgen(n, res);
return;
}
// if both are addressable, move // if both are addressable, move
if(n->addable && res->addable) { if(n->addable && res->addable) {
gmove(n, res); gmove(n, res);
...@@ -123,6 +117,12 @@ cgen(Node *n, Node *res) ...@@ -123,6 +117,12 @@ cgen(Node *n, Node *res)
return; return;
} }
// complex types
if(complexop(n, res)) {
complexgen(n, res);
return;
}
// otherwise, the result is addressable but n is not. // otherwise, the result is addressable but n is not.
// let's do some computation. // 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