aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authormelonedo <funanzeng@gmail.com>2022-09-19 16:01:04 +0800
committerIan Lance Taylor <iant@golang.org>2022-09-27 09:28:39 -0700
commitf38162977e2b7efaa75233a0cba2a30a2b7f5132 (patch)
treefe1805c24a4ce17d6d50af1ed31d23cb29ae935e /libcpp
parent0b2706ac0e6d6b990d789325f9e081dfe4501f4f (diff)
downloadgcc-f38162977e2b7efaa75233a0cba2a30a2b7f5132.zip
gcc-f38162977e2b7efaa75233a0cba2a30a2b7f5132.tar.gz
gcc-f38162977e2b7efaa75233a0cba2a30a2b7f5132.tar.bz2
runtime: synchronize empty struct field handling
In GCCGO and gollvm, the logic for allocating one byte for the last field is: 1. the last field has zero size 2. the struct itself does not have zero size 3. the last field is not blank this commit adds the last two conditions to runtime.structToFFI. For golang/go#55146 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/431735
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions