]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't initialize blank struct fields
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 24 Apr 2019 23:59:34 +0000 (16:59 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 25 Apr 2019 01:30:56 +0000 (01:30 +0000)
commit2693b424662580c3f4fc65e43474e4db0f9c5cf5
treeb1090a6c0295db854c5178d46d91de1694a52c85
parent7596ad0b24436dcde6a370139fbac34a95f15923
cmd/compile: don't initialize blank struct fields

We already skipped blank field initialization in non-global contexts.
This change makes the global context treatment match.

Fixes #31546

Change-Id: I40acce49b0a9deb351ae0da098f4c114e425ec63
Reviewed-on: https://go-review.googlesource.com/c/go/+/173723
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/sinit.go
test/fixedbugs/issue31546.go [new file with mode: 0644]