Recommit [NFC] Better encapsulation of llvm::Optional Storage
authorSerge Guelton <sguelton@redhat.com>
Mon, 18 Feb 2019 08:46:32 +0000 (08:46 +0000)
committerSerge Guelton <sguelton@redhat.com>
Mon, 18 Feb 2019 08:46:32 +0000 (08:46 +0000)
commitfb9730575086b3c2ba38a1aabf3106b01339888b
treee95e4f91205e1c815ce7205d44393487fc8c1143
parent292291fb901ecdb56fcc0b7536e3fbe13cb53980
Recommit [NFC] Better encapsulation of llvm::Optional Storage

Second attempt, trying to navigate out of the UB zone using
union for storage instead of raw bytes.

I'm prepared to revert that commit as soon as validation breaks,
which is likely to happen.

llvm-svn: 354246
llvm/include/llvm/ADT/Optional.h