OSDN Git Service

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)
commite9cf0239fe523fc689c737e4b6c804c3ed87855a
tree054b5e7619a338ad7af44c8289d3ca6889cca83a
parent3cfd39d61c92484ff322a576607b491ffad70063
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