Work around GCC bug in constexpr function
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,11 +56,12 @@ constexpr TestKind getFileTimeTestKind() {
|
||||
using Rep = typename FileTimeT::rep;
|
||||
if (std::is_floating_point<Rep>::value)
|
||||
return TK_FloatingPoint;
|
||||
if (sizeof(Rep) == 16)
|
||||
else if (sizeof(Rep) == 16)
|
||||
return TK_128Bit;
|
||||
if (sizeof(Rep) == 8)
|
||||
else if (sizeof(Rep) == 8)
|
||||
return TK_64Bit;
|
||||
assert(false && "test kind not supported");
|
||||
else
|
||||
assert(false && "test kind not supported");
|
||||
}
|
||||
|
||||
template <class FileTimeT, class TimeT, class TimeSpecT,
|
||||
|
||||
Reference in New Issue
Block a user