Avoid testing for libc++ internal macros after D99834
authorDimitry Andric <dimitry@andric.com>
Wed, 7 Apr 2021 16:51:53 +0000 (18:51 +0200)
committerDimitry Andric <dimitry@andric.com>
Wed, 7 Apr 2021 16:52:41 +0000 (18:52 +0200)
commitb3e9b07a7d1cb543dcd8652a49a3613e6c9d993a
tree22a6504009f8dac4ee583869f2d392da0d9875c3
parent24f67473dd1253f484e10fd5dfbed95489487b60
Avoid testing for libc++ internal macros after D99834

As D99834 was meant specifically for FreeBSD, which still uses the older
non-trivial std::pair copy constructors, test for `__FreeBSD__` instead
of relying on a macro which is an internal detail of libc++.

Noted by Louis Dionne.
llvm/unittests/Support/TypeTraitsTest.cpp