]> granicus.if.org Git - llvm/commit
[NFC] Better encapsulation of llvm::Optional Storage
authorSerge Guelton <sguelton@redhat.com>
Sun, 17 Feb 2019 22:41:14 +0000 (22:41 +0000)
committerSerge Guelton <sguelton@redhat.com>
Sun, 17 Feb 2019 22:41:14 +0000 (22:41 +0000)
commit4ba84a04fd3412e3016642db8049ef6ec9739cc4
tree778b7804e8f948b0b881db83514956452a911ce9
parentc94e63d55761ff27a4443ff73baf67b920e683c3
[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@354238 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Optional.h