Make Optional<T> Trivially Copyable when T is trivially copyable
authorSerge Guelton <sguelton@redhat.com>
Sat, 16 Feb 2019 09:19:58 +0000 (09:19 +0000)
committerSerge Guelton <sguelton@redhat.com>
Sat, 16 Feb 2019 09:19:58 +0000 (09:19 +0000)
commit98b4fd82b72f95542ce398c477f7a46df05b2e6a
tree51696d87bab9f9c265eba71b4a8d80ed48938ceb
parenta05d442391de4a75f26036bee3d5d46ac49f69b2
Make Optional<T> Trivially Copyable when T is trivially copyable

This is another attempt in the process, works nicely on my setup,
let's check how it behaves on other targets.

llvm-svn: 354199
llvm/include/llvm/ADT/Optional.h
llvm/unittests/ADT/OptionalTest.cpp