]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix OffPtr type in 2-field struct Store rule
authorMichael Munday <munday@ca.ibm.com>
Thu, 9 Mar 2017 18:03:07 +0000 (13:03 -0500)
committerMichael Munday <munday@ca.ibm.com>
Thu, 9 Mar 2017 19:09:56 +0000 (19:09 +0000)
commit945180fe2aa3238bbc23f336a00eba934daa9ccc
tree4ebf65e227f39bfc1ff5dd858e80762afd9dac7d
parent4210930a2861c8938baabaa5b8097e8b28d92934
cmd/compile: fix OffPtr type in 2-field struct Store rule

The type of the OffPtr for the first field was incorrect. It should
have been a pointer to the field type, rather than the field
type itself.

Fixes #19475.

Change-Id: I3960b404da0f4bee759331126cce6140d2ce1df7
Reviewed-on: https://go-review.googlesource.com/37869
Run-TryBot: Michael Munday <munday@ca.ibm.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go