[llvm] Remove llvm::is_trivially_{copy/move}_constructible (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 20 Aug 2022 21:06:42 +0000 (14:06 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 20 Aug 2022 21:06:42 +0000 (14:06 -0700)
commit01ffe31cbb54bfd8e38e71b3cf804a1d67ebf9c1
treecc6cc141202558d9f50bbb573fa7da3467e4c139
parente0fc85e092199e9520f42b97663bd773d4a8b6bf
[llvm] Remove llvm::is_trivially_{copy/move}_constructible (NFC)

This patch removes llvm::is_trivially_{copy/move}_constructible in
favor of std::is_trivially_{copy/move}_constructible.

The previous attempt to remove them in Dec 2020,
c8d406c93c5bb01599990201f78d8428dd29d289, broke builds with "some
versions of GCC" according to
6cd9608fb37ca2418fb44b57ec955bb5efe10689.

It's been 20 months since then, and the minimum requirement for GCC
has been updated to 7.1 from 5.1.

FWIW, I was able to build llvm with gcc 8.4.0.

Differential Revision: https://reviews.llvm.org/D132311
llvm/include/llvm/ADT/FunctionExtras.h
llvm/include/llvm/ADT/Optional.h
llvm/include/llvm/ADT/SmallVector.h
llvm/include/llvm/Support/type_traits.h
llvm/unittests/Support/TypeTraitsTest.cpp