1
0
mirror of https://github.com/golang/go synced 2024-11-22 12:14:42 -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;
if(nl != N && nl->ullman >= UINF)
if(nr != N && nr->ullman >= UINF) {
dump("fncalls", n);
fatal("cgen: both sides functions");
tempname(&n1, nr->type);
cgen(nr, &n1);
n2 = *n;
n2.right = &n1;
cgen(&n2, res);
goto ret;
}