]> Cypherpunks repositories - gostls13.git/commitdiff
regfree
authorKen Thompson <ken@golang.org>
Sun, 21 Dec 2008 00:07:56 +0000 (16:07 -0800)
committerKen Thompson <ken@golang.org>
Sun, 21 Dec 2008 00:07:56 +0000 (16:07 -0800)
R=r
OCL=21685
CL=21687

src/cmd/6g/gen.c

index 640243f7f5c1944ffe723e17b526eabacc535ec2..511ea5652cd6b6b51cde8a958799614c82978d79 100644 (file)
@@ -901,10 +901,10 @@ cgen_aret(Node *n, Node *res)
        nod1.type = fp->type;
 
        if(res->op != OREGISTER) {
-print("its 1\n");
                regalloc(&nod2, types[tptr], res);
                gins(ALEAQ, &nod1, &nod2);
                gins(AMOVQ, &nod2, res);
+               regfree(&nod2);
        } else
                gins(ALEAQ, &nod1, res);
 }