forked from OSchip/llvm-project
Work around GCC bug in constexpr function
llvm-svn: 337976
This commit is contained in:
parent
7610b4d64c
commit
99ca3c0a61
|
@ -56,10 +56,11 @@ 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;
|
||||
else
|
||||
assert(false && "test kind not supported");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue