]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make sure field offset is aligned for structure splitting
authorDavid Chase <drchase@google.com>
Mon, 26 Oct 2020 23:06:39 +0000 (19:06 -0400)
committerDavid Chase <drchase@google.com>
Wed, 28 Oct 2020 01:22:47 +0000 (01:22 +0000)
commit2414e1f17b2f82be10110513b17cdfa80c9937c6
treee2d2bac54c1c0a90110bf38869265626f750cb9a
parent7be9158ce50e8f9f9a9a624874b8e4f3ceb07f44
cmd/compile: make sure field offset is aligned for structure splitting

Always use the aligned form -- the old code sometimes could
at least nominally use a misaligned field in an SSA-able struct,
even if not actually.

Fixes #42181.

Change-Id: Ibdce0985f9349da70921a37423054b85ee4200d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/265277
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go