]> Cypherpunks repositories - gostls13.git/commitdiff
8g compiler missing call to splitclean().
authorKen Thompson <ken@golang.org>
Mon, 28 Jun 2010 19:19:12 +0000 (12:19 -0700)
committerKen Thompson <ken@golang.org>
Mon, 28 Jun 2010 19:19:12 +0000 (12:19 -0700)
fixes #887.

R=rsc
CC=golang-dev
https://golang.org/cl/1675050

src/cmd/8g/cgen.c

index cd70f5e17f85f833e6a4c3f5e7262a844f7c2c37..8fbdc6ee72c1a01c3e7a3c77f9b6ceb74b1d22d7 100644 (file)
@@ -453,10 +453,13 @@ cgenindex(Node *n, Node *res)
        cgen(n, &tmp);
        split64(&tmp, &lo, &hi);
        gmove(&lo, res);
-       if(debug['B'])
+       if(debug['B']) {
+               splitclean();
                return nil;
+       }
        nodconst(&zero, types[TINT32], 0);
        gins(ACMPL, &hi, &zero);
+       splitclean();
        return gbranch(AJNE, T);
 }