Recommit [NFC] Better encapsulation of llvm::Optional Storage
commit79a5a126b80af5a592d8c178a4d14fd0a31e4c1f
authorSerge Guelton <sguelton@redhat.com>
Mon, 18 Feb 2019 08:46:32 +0000 (18 08:46 +0000)
committerSerge Guelton <sguelton@redhat.com>
Mon, 18 Feb 2019 08:46:32 +0000 (18 08:46 +0000)
tree054b5e7619a338ad7af44c8289d3ca6889cca83a
parent3d54972ba88d7cd2635d432a554bd86175a1befb
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354246 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Optional.h