aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorRémy Oudompheng <oudomphe@phare.normalesup.org>2013-05-20 23:19:41 +0200
committerRémy Oudompheng <oudomphe@phare.normalesup.org>2013-05-20 23:19:41 +0200
commit4b0eb19a05133d4cc117fefe1e37ea1e35a64c73 (patch)
treeaf5fa48c058cb3431e5620ff19ed812d8866a9c7 /src/cmd
parent6a3859f4331b2039142673e9beac8ffdd7d2628a (diff)
downloadgo-4b0eb19a05133d4cc117fefe1e37ea1e35a64c73.tar.xz
cmd/gc: eliminate a useless bounds check in inlined append().
R=golang-dev, daniel.morsing, r CC=golang-dev https://golang.org/cl/9358043
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/gc/walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c
index d9c6341b43..3dd8930969 100644
--- a/src/cmd/gc/walk.c
+++ b/src/cmd/gc/walk.c
@@ -2537,7 +2537,7 @@ append(Node *n, NodeList **init)
l = list(l, nod(OAS, nn, nod(OLEN, ns, N))); // n = len(s)
nx = nod(OSLICE, ns, nod(OKEY, N, nod(OADD, nn, na))); // ...s[:n+argc]
- nx->bounded = 1;
+ nx->etype = 1;
l = list(l, nod(OAS, ns, nx)); // s = s[:n+argc]
for (a = n->list->next; a != nil; a = a->next) {