From 10296166a51206ecdb95f056550fc0cd3fc08f0a Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Tue, 24 Jun 2008 18:14:32 -0700 Subject: [PATCH] bug in returning a fat function result SVN=124436 --- src/cmd/6g/gen.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cmd/6g/gen.c b/src/cmd/6g/gen.c index 0bfd7be166..4faca96c58 100644 --- a/src/cmd/6g/gen.c +++ b/src/cmd/6g/gen.c @@ -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