]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: delete old map delete in walk
authorRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 03:03:35 +0000 (22:03 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 03:03:35 +0000 (22:03 -0500)
R=ken2
CC=golang-dev
https://golang.org/cl/5783047

src/cmd/gc/walk.c

index 74298e1266c5e3a9356969ac05f2a37ce20f4454..0ed68f86b010763d10248ed0b6422d671de0f97c 100644 (file)
@@ -646,12 +646,6 @@ walkexpr(Node **np, NodeList **init)
                n->ninit = nil;
                l = n->list->n;
                r = n->list->next->n;
-               if(n->right != N) {
-                       // TODO: Remove once two-element map assigment is gone.
-                       l = safeexpr(l, init);
-                       r = safeexpr(r, init);
-                       safeexpr(n->right, init);  // cause side effects from n->right
-               }
                t = l->type;
                n = mkcall1(mapfndel("mapdelete", t), t->down, init, typename(t), l, r);
                goto ret;