mirror of
https://github.com/golang/go
synced 2024-11-22 17:04:40 -07:00
fixed fncall both sides
SVN=125217
This commit is contained in:
parent
102fcc6689
commit
390d5fe5b2
@ -63,8 +63,11 @@ cgen(Node *n, Node *res)
|
|||||||
nr = n->right;
|
nr = n->right;
|
||||||
if(nl != N && nl->ullman >= UINF)
|
if(nl != N && nl->ullman >= UINF)
|
||||||
if(nr != N && nr->ullman >= UINF) {
|
if(nr != N && nr->ullman >= UINF) {
|
||||||
dump("fncalls", n);
|
tempname(&n1, nr->type);
|
||||||
fatal("cgen: both sides functions");
|
cgen(nr, &n1);
|
||||||
|
n2 = *n;
|
||||||
|
n2.right = &n1;
|
||||||
|
cgen(&n2, res);
|
||||||
goto ret;
|
goto ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user