From: Tobias Klauser Date: Mon, 18 Sep 2017 13:20:31 +0000 (+0200) Subject: cmd/compile: simplify range expression X-Git-Tag: go1.10beta1~1077 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8bdf0b72b0b53c877525a608fed6a7b01fd4fd17;p=gostls13.git cmd/compile: simplify range expression Found by running gofmt -s on the file in question. Change-Id: I84511bd2bc75dff196930a7a87ecf5a2aca2fbb8 Reviewed-on: https://go-review.googlesource.com/64310 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/dcl.go b/src/cmd/compile/internal/gc/dcl.go index 6ffc3475d2..66caf2d943 100644 --- a/src/cmd/compile/internal/gc/dcl.go +++ b/src/cmd/compile/internal/gc/dcl.go @@ -1137,7 +1137,7 @@ func checknowritebarrierrec() { // the recursive case, we have to update this at most // len(list) times and can stop when we an iteration // that doesn't change anything. - for _ = range list { + for range list { c.stable = false for _, n := range list { if n.Func.Pragma&Yeswritebarrierrec != 0 {