[PATCH] D74380: Fix SFINAE in llvm::bit_cast.
Justin Lebar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 07:50:43 PST 2020
jlebar updated this revision to Diff 243873.
jlebar added a comment.
Rebase
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.243873.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200211/b558c4a0/attachment.bin>
More information about the llvm-commits
mailing list