]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't nilcheck newobject and return values from mapaccess{1,2}
authorKeith Randall <khr@golang.org>
Wed, 20 Apr 2016 04:06:53 +0000 (21:06 -0700)
committerKeith Randall <khr@golang.org>
Fri, 22 Apr 2016 16:18:42 +0000 (16:18 +0000)
commit3c1a4c1902711c16489ed0c3506df97439ffbd85
tree85df4a3a5fe5d7c8eab29ad769307a71443709a2
parent32302d6289e9721015d5d7ac99bbce30de47746c
cmd/compile: don't nilcheck newobject and return values from mapaccess{1,2}

They are guaranteed to be non-nil, no point in inserting
nil checks for them.

Fixes #15390

Change-Id: I3b9a0f2319affc2139dcc446d0a56c6785ae5a86
Reviewed-on: https://go-review.googlesource.com/22291
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/cgen.go
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/walk.go
src/cmd/compile/internal/ssa/nilcheck.go
test/nilptr3.go
test/nilptr3_ssa.go