mirror of
https://github.com/golang/go
synced 2024-11-12 08:50:22 -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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user