[llvm] r341866 - Fix bit_cast __is_trivially_copyable
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 10 14:41:14 PDT 2018
Author: jfb
Date: Mon Sep 10 14:41:14 2018
New Revision: 341866
URL: http://llvm.org/viewvc/llvm-project?rev=341866&view=rev
Log:
Fix bit_cast __is_trivially_copyable
It's a function-like builtin, not a template.
Modified:
llvm/trunk/include/llvm/ADT/bit.h
Modified: llvm/trunk/include/llvm/ADT/bit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/bit.h?rev=341866&r1=341865&r2=341866&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/bit.h (original)
+++ llvm/trunk/include/llvm/ADT/bit.h Mon Sep 10 14:41:14 2018
@@ -27,8 +27,8 @@ template <typename To, typename From
, typename = typename std::enable_if<std::is_trivially_copyable<To>::value>::type
, typename = typename std::enable_if<std::is_trivially_copyable<From>::value>::type
#elif __has_feature(is_trivially_copyable)
- , typename = typename std::enable_if<__is_trivially_copyable<To>::value>::type
- , typename = typename std::enable_if<__is_trivially_copyable<From>::value>::type
+ , typename = typename std::enable_if<__is_trivially_copyable(To>>::type
+ , typename = typename std::enable_if<__is_trivially_copyable(From)>::type
#else
// This case is GCC 4.x. clang with libc++ or libstdc++ never get here. Unlike
// llvm/Support/type_traits.h's isPodLike we don't want to provide a
More information about the llvm-commits
mailing list