diff options
| author | Stepan Koltsov <stepan.koltsov@gmail.com> | 2014-04-12 18:56:34 +0000 |
|---|---|---|
| committer | Stepan Koltsov <stepan.koltsov@gmail.com> | 2014-04-12 18:56:34 +0000 |
| commit | 7fefc1c7f417a8445da85e57a9523508a2561ef3 (patch) | |
| tree | 2d5c0044a05f5f9a439dcdb9b8552a4ef7e7d4fe /src/rustllvm/RustWrapper.cpp | |
| parent | ecc774f788ca3880ce76e4b87ac0d21a3a16d3ae (diff) | |
| download | rust-7fefc1c7f417a8445da85e57a9523508a2561ef3.tar.gz rust-7fefc1c7f417a8445da85e57a9523508a2561ef3.zip | |
Append missing padding after last field of struct
This patch fixes issue #13186. When generating constant expression for enum, it is possible that alignment of expression may be not equal to alignment of type. In that case space after last struct field must be padded to match size of value and size of struct. This commit adds that padding. See detailed explanation in src/test/run-pass/trans-tag-static-padding.rs
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
