]> Cypherpunks repositories - gostls13.git/commitdiff
len(fixed array)
authorKen Thompson <ken@golang.org>
Fri, 18 Jul 2008 18:59:35 +0000 (11:59 -0700)
committerKen Thompson <ken@golang.org>
Fri, 18 Jul 2008 18:59:35 +0000 (11:59 -0700)
SVN=128050

src/cmd/gc/go.h
src/cmd/gc/walk.c

index ed1f903e58ec155125bdb538e15b40fbe1b38cc8..ffc75ade7a11f3c85b2b8e4bf52a60af9278053f 100644 (file)
@@ -613,3 +613,4 @@ void        dumpobj(void);
 void   dowidth(Type*);
 void   argspace(long);
 Node*  nodarg(Type*, int);
+void   nodconst(Node*, Type*, vlong);
index 28774a5a28190b42394df92af7ae228d40fb6879..576fe90b02af7bda3abacd2a9805d21df718a8e2 100644 (file)
@@ -501,8 +501,11 @@ loop:
                default:
                        goto badt;
                case TSTRING:
-                       break;
                case TMAP:
+               case TDARRAY:
+                       break;
+               case TARRAY:
+                       nodconst(n, types[TINT32], t->bound);
                        break;
                }
                n->type = types[TINT32];