File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ pub fn llsize_of_alloc(cx: &CrateContext, ty: Type) -> llsize {
43
43
44
44
// Returns, as near as we can figure, the "real" size of a type. As in, the
45
45
// bits in this number of bytes actually carry data related to the datum
46
- // with the type. Not junk, padding, accidentally-damaged words, or
47
- // whatever. Rounds up to the nearest byte though, so if you have a 1-bit
46
+ // with the type. Not junk, accidentally-damaged words, or whatever.
47
+ // Note that padding of the type will be included for structs, but not for the
48
+ // other types (i.e. SIMD types).
49
+ // Rounds up to the nearest byte though, so if you have a 1-bit
48
50
// value, we return 1 here, not 0. Most of rustc works in bytes. Be warned
49
51
// that LLVM *does* distinguish between e.g. a 1-bit value and an 8-bit value
50
52
// at the codegen level! In general you should prefer `llbitsize_of_real`
You can’t perform that action at this time.
0 commit comments