]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: mark LOCALS argument as a constant to print correctly
authorCarl Shapiro <cshapiro@google.com>
Fri, 22 Feb 2013 23:32:54 +0000 (15:32 -0800)
committerCarl Shapiro <cshapiro@google.com>
Fri, 22 Feb 2013 23:32:54 +0000 (15:32 -0800)
Fixes #4875.

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

src/cmd/gc/pgen.c

index 38589d55d20b7b2174e7f3bf5e22eda6d36c6753..f4894e468e6682aad4c91a2c91c8e2657877c5a0 100644 (file)
@@ -135,6 +135,7 @@ compile(Node *fn)
        oldstksize = stksize;
        allocauto(ptxt);
 
+       plocals->to.type = D_CONST;
        plocals->to.offset = stksize;
 
        if(0)