[PATCH] D93510: Fix llvm::Optional build breaks in MSVC using std::is_trivially_copyable
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 22:36:50 PST 2020
dblaikie added a comment.
any idea why this only fails for MSVC? It'd be good to understand more why this didn't trip up other builds so we can avoid those sort of divergences in the future, perhaps.
Would it be possible to add a test case for the is_trivially_copy_constructible case you speculated about?
================
Comment at: llvm/include/llvm/ADT/Optional.h:36-38
+template <typename T, bool = is_trivially_copyable<T>::value
+ &&std::is_trivially_copy_constructible<T>::value
+ &&std::is_trivially_copy_assignable<T>::value>
----------------
Could you run this through clang-format?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93510/new/
https://reviews.llvm.org/D93510
More information about the llvm-commits
mailing list