]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: handle DOT STRUCTLIT for zero-valued struct in SSA
authorCherry Zhang <cherryyz@google.com>
Wed, 8 Feb 2017 20:31:24 +0000 (15:31 -0500)
committerCherry Zhang <cherryyz@google.com>
Wed, 8 Feb 2017 21:01:51 +0000 (21:01 +0000)
commita146dd3a2fdf87bab90ee1f636c38cd3444e55fa
tree771c4b8a0abbb22f958e168da103f15e40643807
parente3efdffacdd27786ecf0647272e54c664daf4c94
cmd/compile: handle DOT STRUCTLIT for zero-valued struct in SSA

CL 35261 makes SSA handle zero-valued STRUCTLIT, but DOT operation
was not handled.

Fixes #18994.

Change-Id: Ic7976036acca1523b0b14afac4d170797e8aee20
Reviewed-on: https://go-review.googlesource.com/36565
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/ssa.go
test/fixedbugs/issue18994.go [new file with mode: 0644]