Switch from llvm::is_trivially_copyable to std::is_trivially_copyable
authorFangrui Song <i@maskray.me>
Thu, 3 Dec 2020 06:02:48 +0000 (22:02 -0800)
committerFangrui Song <i@maskray.me>
Thu, 3 Dec 2020 06:02:48 +0000 (22:02 -0800)
commit1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b
tree442e8d4661a5a6e7f05bd1048d8aa6d5811808f8
parentbd726d2796b1a5d2c936b5708bfb49a4b7fb89de
Switch from llvm::is_trivially_copyable to std::is_trivially_copyable

GCC<5 did not support std::is_trivially_copyable. Now LLVM builds require 5.1
we can migrate to std::is_trivially_copyable.

The Optional.h change made MSVC choke
(https://buildkite.com/llvm-project/premerge-checks/builds/18587#cd1bb616-ffdc-4581-9795-b42c284196de)
so I leave it out for now.

Differential Revision: https://reviews.llvm.org/D92514
16 files changed:
llvm/docs/ProgrammersManual.rst
llvm/include/llvm/ADT/DenseMap.h
llvm/include/llvm/ADT/STLExtras.h
llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h
llvm/tools/llvm-diff/DifferenceEngine.cpp
llvm/unittests/ADT/ArrayRefTest.cpp
llvm/unittests/ADT/ImmutableListTest.cpp
llvm/unittests/ADT/OptionalTest.cpp
llvm/unittests/ADT/PointerIntPairTest.cpp
llvm/unittests/ADT/StringRefTest.cpp
llvm/unittests/Analysis/BlockFrequencyInfoTest.cpp
llvm/unittests/Bitstream/BitstreamReaderTest.cpp
llvm/unittests/CodeGen/MachineInstrTest.cpp
llvm/unittests/CodeGen/TypeTraitsTest.cpp
llvm/unittests/IR/CFGBuilder.cpp
llvm/unittests/Support/ScaledNumberTest.cpp