JustinStitt wrote:

also could you clarify how the padding between members is handled?

```c
struct ThereBePaddingHere { char c; int i; char buf[2000]; };   // max-size=16
```

let's say we are `-ftrivial-auto-var-init=zero` and max size of 16. any 
instances of `ThereBePaddingHere` obviously won't be zero-init'd. looking into 
the struct `c` will be zero-init'd but what about the 3 bytes between `c` and 
`i`? are we doing anything with those? 

https://github.com/llvm/llvm-project/pull/229584
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to