Commit ceb868bf authored by Russ Cox's avatar Russ Cox

gc: fix build - subnode not addable in complexgen

R=ken2
CC=golang-dev
https://golang.org/cl/1677047
parent d67717c2
...@@ -121,12 +121,15 @@ complexgen(Node *n, Node *res) ...@@ -121,12 +121,15 @@ complexgen(Node *n, Node *res)
// pick off float/complex opcodes // pick off float/complex opcodes
switch(n->op) { switch(n->op) {
case OCMPLX: case OCMPLX:
if(res->addable) {
subnode(&n1, &n2, res); subnode(&n1, &n2, res);
tempname(&tmp, n1.type); tempname(&tmp, n1.type);
cgen(n->left, &tmp); cgen(n->left, &tmp);
cgen(n->right, &n2); cgen(n->right, &n2);
cgen(&tmp, &n1); cgen(&tmp, &n1);
return; return;
}
break;
case OREAL: case OREAL:
case OIMAG: case OIMAG:
......
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