1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:24:53 -07:00

fixed fncall both sides

SVN=125217
This commit is contained in:
Ken Thompson 2008-06-27 16:59:14 -07:00
parent 102fcc6689
commit 390d5fe5b2

View File

@ -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;
} }