[ADT] Simplify llvm::bit_cast (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 21 Aug 2022 17:39:21 +0000 (10:39 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 21 Aug 2022 17:39:21 +0000 (10:39 -0700)
commitbe35870dc8eed02113f730acfcf7da7e50418ae6
tree694b6676cf76117cffc09af8d7140bea1b2ddb3d
parent36357c967cdb9006dd7de9be0dd52068da2a4f96
[ADT] Simplify llvm::bit_cast (NFC)

This patch removes macro tricks to check GCC versions.

The commit message from 19262fc5966ab569f21f3d440f8b001bca666f17
states that "is_trivially_copyable is only in GCC 5.1 and later".
Note that we now require GCC 7.1 or higher.

Since both std::is_trivially_constructible and
std::is_trivially_copyable are C++11 features, and we now require
C++17, we probably don't need to worry about the availability of the
C++11 features.

Differential Revision: https://reviews.llvm.org/D132330
llvm/include/llvm/ADT/bit.h