about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2015-10-09 01:26:21 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2015-10-10 01:15:36 +0200
commit6ad079e341c2f7dbf81664620b6b0550ce37e784 (patch)
tree516881179d32e0eb84106a6a3f0e747f7e23a77b /src/rustllvm/RustWrapper.cpp
parent7ff4524e54cb4c396903fa8d0260dd27d9463c24 (diff)
downloadrust-6ad079e341c2f7dbf81664620b6b0550ce37e784.tar.gz
rust-6ad079e341c2f7dbf81664620b6b0550ce37e784.zip
Set proper alignment on constants
For enum variants, the default alignment for a specific variant might be
lower than the alignment of the enum type itself. In such cases we, for
example, generate memcpy calls with an alignment that's higher than the
alignment of the constant we copy from.

To avoid that, we need to explicitly set the required alignment on
constants.

Fixes #28912.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions