]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: remove unnecessary nil-check
authorAlexey Naidonov <alexey.naidyonov@gmail.com>
Mon, 27 Aug 2018 21:39:34 +0000 (00:39 +0300)
committerKeith Randall <khr@golang.org>
Tue, 4 Sep 2018 17:44:14 +0000 (17:44 +0000)
commit669fa8f36a298cc0e2d1f817ca30c8d613ce7483
treed982f3fc4a3bb833b4cf0d81ccbe8f7a697eabab
parent24e51bbe64b4a534b096a3b0c6bfae6a732eea59
cmd/compile: remove unnecessary nil-check

Removes unnecessary nil-check when referencing offset from an
address. Suggested by Keith Randall in golang/go#27180.

Updates golang/go#27180

Change-Id: I326ed7fda7cfa98b7e4354c811900707fee26021
Reviewed-on: https://go-review.googlesource.com/131735
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/nilcheck.go
test/nilptr3.go