[PATCH] D68115: Zero initialize padding in unions
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 14 13:38:10 PST 2020
hubert.reinterpretcast added a comment.
In D68115#1820462 <https://reviews.llvm.org/D68115#1820462>, @vitalybuka wrote:
> So if I understand this the proposal is to have something like -fzero-union-padding which is off by default.
> When it's OFF compiler will continue to do whatever it does now.
> When it's ON it will set zeroes into padding with or without -ftrivial-auto-var-init.
> Is this correct?
That's my understanding and I would find such an option useful.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68115/new/
https://reviews.llvm.org/D68115
More information about the cfe-commits
mailing list