]> Cypherpunks repositories - gostls13.git/commitdiff
fix bug in codegen when we modified move instruction instead
authorKai Backman <kaib@golang.org>
Tue, 14 Jul 2009 03:33:59 +0000 (20:33 -0700)
committerKai Backman <kaib@golang.org>
Tue, 14 Jul 2009 03:33:59 +0000 (20:33 -0700)
of text.

R=rsc
APPROVED=rsc
DELTA=3  (1 added, 2 deleted, 0 changed)
OCL=31575
CL=31575

src/cmd/cc/pgen.c

index 0b9dc8e163a57c770f73a369d5e118b1e7a3cb6a..9a7a3e7e18f52c1dbfc128bcc04eab44dfbe4892 100644 (file)
@@ -79,6 +79,7 @@ codgen(Node *n, Node *nn)
        nearln = nn->lineno;
 
        p = gtext(n1->sym, stkoff);
+       sp = p;
 
        /*
         * isolate first argument
@@ -100,7 +101,6 @@ codgen(Node *n, Node *nn)
                }
        }
 
-       sp = p;
        retok = 0;
 
        canreach = 1;
@@ -588,4 +588,3 @@ bcomplex(Node *n, Node *c)
        boolgen(n, 1, Z);
        return 0;
 }
-