diff options
author | melonedo <funanzeng@gmail.com> | 2022-09-19 16:01:04 +0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-09-27 09:28:39 -0700 |
commit | f38162977e2b7efaa75233a0cba2a30a2b7f5132 (patch) | |
tree | fe1805c24a4ce17d6d50af1ed31d23cb29ae935e /libcpp | |
parent | 0b2706ac0e6d6b990d789325f9e081dfe4501f4f (diff) | |
download | gcc-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