mirror of
https://github.com/golang/go
synced 2024-11-21 20:04:44 -07:00
gc: fix build - subnode not addable in complexgen
R=ken2 CC=golang-dev https://golang.org/cl/1677047
This commit is contained in:
parent
d67717c29b
commit
ceb868bf0a
@ -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:
|
||||||
subnode(&n1, &n2, res);
|
if(res->addable) {
|
||||||
tempname(&tmp, n1.type);
|
subnode(&n1, &n2, res);
|
||||||
cgen(n->left, &tmp);
|
tempname(&tmp, n1.type);
|
||||||
cgen(n->right, &n2);
|
cgen(n->left, &tmp);
|
||||||
cgen(&tmp, &n1);
|
cgen(n->right, &n2);
|
||||||
return;
|
cgen(&tmp, &n1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case OREAL:
|
case OREAL:
|
||||||
case OIMAG:
|
case OIMAG:
|
||||||
|
Loading…
Reference in New Issue
Block a user