about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-07-10 22:56:38 +0200
committerGitHub <noreply@github.com>2018-07-10 22:56:38 +0200
commitbfac782b691e61c20168aa473708dd16aa4a5eda (patch)
tree2d36c028915669939703cae890ce1b86b84d3b73 /src/rustllvm/RustWrapper.cpp
parent2d0bbfcaed310879ba66e1728a029929773b0f39 (diff)
parentdc425e2e64863d4e1aa0f2bb41f7bfa3cd14b558 (diff)
downloadrust-bfac782b691e61c20168aa473708dd16aa4a5eda.tar.gz
rust-bfac782b691e61c20168aa473708dd16aa4a5eda.zip
Rollup merge of #52064 - Valloric:patch-1, r=cramertj
Clarifying how the alignment of the struct works

The docs were not specifying how to compute the alignment of the struct, so I had to spend some time trying to figure out how that works. Found the answer [on this page](http://camlorn.net/posts/April%202017/rust-struct-field-reordering.html):

> The total size of this struct is 5, but the most-aligned field is b with alignment 2, so we round up to 6 and give the struct an alignment of 2 bytes.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions