]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use range construct
authorIngo Oeser <nightlyone@googlemail.com>
Tue, 8 Mar 2016 20:53:33 +0000 (21:53 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Mar 2016 04:58:07 +0000 (04:58 +0000)
commit33fd4535a408aa863e6f0c7196291ae2a583644f
tree3d081795ae25f1fef886d3693d8455729a970440
parentc52cb1fe9ef1cab19ce8de6c4da93a9d2287cc1e
cmd/compile: use range construct

so the code is more readable.

Also use n[i] = val instead of n = append(n, val),
because this avoids a function call to append.

NOTE: compiles, but I had trouble running toolstash -cmp and need sleep
now.

@Ian this might save you some grunt work :-)

Change-Id: I2a4c70396c58905f7d5aabf83f3020f11dea0e89
Reviewed-on: https://go-review.googlesource.com/20430
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/bimport.go