[llvm] r341867 - Fix bit_cast properly

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 14:43:17 PDT 2018


Author: jfb
Date: Mon Sep 10 14:43:17 2018
New Revision: 341867

URL: http://llvm.org/viewvc/llvm-project?rev=341867&view=rev
Log:
Fix bit_cast properly

Mismatched braces.

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=341867&r1=341866&r2=341867&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/bit.h (original)
+++ llvm/trunk/include/llvm/ADT/bit.h Mon Sep 10 14:43:17 2018
@@ -27,7 +27,7 @@ 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>>::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




More information about the llvm-commits mailing list