about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-05 10:06:39 -0700
committerbors <bors@rust-lang.org>2014-05-05 10:06:39 -0700
commitfd625dda9a25c054d622e20822f2889f17b15aa6 (patch)
treed2c6aed0d2214322f5ee55392c609e7d46ff2da6 /src/rustllvm/RustWrapper.cpp
parent2be738ae36600e562fcfc9ed938e183875cd72ad (diff)
parent7fefc1c7f417a8445da85e57a9523508a2561ef3 (diff)
downloadrust-fd625dda9a25c054d622e20822f2889f17b15aa6.tar.gz
rust-fd625dda9a25c054d622e20822f2889f17b15aa6.zip
auto merge of #13271 : stepancheg/rust/align, r=pcwalton
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