llvm-mirror/include
Serge Guelton 920e69d8bf Make llvm::Optional<T> trivially copyable when T is trivially copyable
This is an ever-recurring issue (see https://bugs.llvm.org/show_bug.cgi?id=39427 and https://bugs.llvm.org/show_bug.cgi?id=35978)
but I believe that thanks to https://reviews.llvm.org/D54472 we can now ship a decent implementation of this.

Basically the fact that llvm::is_trivially_copyable has a consistent behavior across compilers should prevent any ABI issue,
and using in-place new instead of memcpy should keep compiler bugs away.

Differential Revision: https://reviews.llvm.org/D57097

llvm-svn: 353927
2019-02-13 09:31:22 +00:00
..
llvm Make llvm::Optional<T> trivially copyable when T is trivially copyable 2019-02-13 09:31:22 +00:00
llvm-c Implementation of asm-goto support in LLVM 2019-02-08 20:48:56 +00:00