[PATCH] D74380: Fix SFINAE in llvm::bit_cast.

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 20:37:36 PST 2020


jlebar updated this revision to Diff 243730.
jlebar added a comment.

Undo overzealous re-clang-formatting.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74380/new/

https://reviews.llvm.org/D74380

Files:
  llvm/include/llvm/ADT/bit.h


Index: llvm/include/llvm/ADT/bit.h
===================================================================
--- llvm/include/llvm/ADT/bit.h
+++ llvm/include/llvm/ADT/bit.h
@@ -26,7 +26,8 @@
           , typename = typename std::enable_if<sizeof(To) == sizeof(From)>::type
 #if (__has_feature(is_trivially_constructible) && defined(_LIBCPP_VERSION)) || \
     (defined(__GNUC__) && __GNUC__ >= 5)
-          , typename = typename std::is_trivially_constructible<To>::type
+          , typename = typename std::enable_if<
+              std::is_trivially_constructible<To>::value>::type
 #elif __has_feature(is_trivially_constructible)
           , typename = typename std::enable_if<__is_trivially_constructible(To)>::type
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74380.243730.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200211/170ebce0/attachment.bin>


More information about the llvm-commits mailing list