]> Cypherpunks repositories - gostls13.git/commitdiff
bug in returning a fat function result
authorKen Thompson <ken@golang.org>
Wed, 25 Jun 2008 01:14:32 +0000 (18:14 -0700)
committerKen Thompson <ken@golang.org>
Wed, 25 Jun 2008 01:14:32 +0000 (18:14 -0700)
SVN=124436

src/cmd/6g/gen.c

index 0bfd7be1667a61c2cf945c15e9a7ddaf86e9ce16..4faca96c584ef8d54c77aeb3289f7c482aff776c 100644 (file)
@@ -694,12 +694,7 @@ cgen_aret(Node *n, Node *res)
        nod1.xoffset = fp->width;
        nod1.type = fp->type;
 
-       memset(&nod2, 0, sizeof(nod2));
-       nod2.op = OADDR;
-       nod2.left = &nod1;
-       nod2.addable = 1;
-
-       cgen_as(res, &nod2, 0);
+       gins(ALEAQ, &nod1, res);
 }
 
 void