[PATCH] D68115: Zero initialize padding in unions

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 20:55:47 PDT 2019


hubert.reinterpretcast added a comment.

In D68115#1686887 <https://reviews.llvm.org/D68115#1686887>, @vitalybuka wrote:

> I would be happy to update the patch to enable it only for -ftrivial-auto-var-init=pattern, if we want "bumper" version.


It seems to be a separable feature (although it does interact with `-ftrivial-auto-init=pattern`). That option also provides guardrails for non-unions, and "bumper guardrails" for unions can be a useful feature without the non-union guardrails.


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