go/go/ssa
vovapi ac4f524c16 go/ssa: add position data in indexed range loops
Indexed range loops are lacking position data
in their SSA representation, so add the position data
into an index operation.

This improves the nilness output by providing position data
with the message.

Updates golang/go#31008

Change-Id: I664c8668bc74207e770657e21129d20fd70e7af6
GitHub-Last-Rev: 75831d240efd2a79ff95cc18041d29d332dc94ab
GitHub-Pull-Request: golang/tools#190
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208599
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-01-09 17:47:59 +00:00
..
interp go/ssa/interp: skip recover2 testcase 2019-09-04 21:37:38 +00:00
ssautil all: fix more typos 2019-09-11 15:13:14 +00:00
testdata all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
blockopt.go
builder.go go/ssa: add position data in indexed range loops 2020-01-09 17:47:59 +00:00
builder_test.go go/ssa: eliminate dead φ-nodes in cycles 2017-02-22 01:23:56 +00:00
const.go x/tools: remove old renaming imports of go/constant as exact 2018-08-10 17:04:37 +00:00
create.go go/ssa: updates to support go/packages 2018-08-08 20:03:34 +00:00
doc.go go/ssa: updates to support go/packages 2018-08-08 20:03:34 +00:00
dom.go
emit.go x/tools/go/ssa: Accept struct conversions that ignore tags 2017-06-02 20:57:42 +00:00
example_test.go go/ssa: fix vet issues 2018-11-05 21:34:10 +00:00
func.go go/ssa: make a setNumable interface 2019-10-01 17:08:58 +00:00
identical.go x/tools/go/ssa: Accept struct conversions that ignore tags 2017-06-02 20:57:42 +00:00
identical_17.go x/tools/go/ssa: Accept struct conversions that ignore tags 2017-06-02 20:57:42 +00:00
identical_test.go all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
lift.go go/ssa: fix regression in φ-elimination 2017-06-15 18:36:17 +00:00
lvalue.go tools: updates for minimum Go version 1.6 2017-02-07 21:06:19 +00:00
methods.go go/ssa: updated inconsistent docs after Program.Method rename 2018-11-09 15:25:51 +00:00
mode.go go/ssa: make *BuilderMode satisfy flag.Value 2016-03-07 22:18:09 +00:00
print.go go/ssa: fix regression in φ-elimination 2017-06-15 18:36:17 +00:00
sanity.go go/ssa: fix vet issues 2018-11-05 21:34:10 +00:00
source.go go/ssa: fix import in comment 2019-03-12 14:13:10 +00:00
source_test.go go/ssa: convert the objlookup tests to the new marker syntax 2018-12-13 15:12:02 +00:00
ssa.go go/ssa: updated inconsistent docs after Program.Method rename 2018-11-09 15:25:51 +00:00
stdlib_test.go all: skip tests if required tools are not found 2019-08-30 15:40:57 +00:00
testmain.go go/loader: document that package is deprecated 2019-06-24 19:02:45 +00:00
testmain_test.go go/ssa: support custom TestMain functions in test packages 2016-10-19 17:50:59 +00:00
util.go tools: updates for minimum Go version 1.6 2017-02-07 21:06:19 +00:00
wrappers.go go/ssa: use correct type for variadic parameter in wrapper methods 2018-09-11 13:30:44 +00:00