[llvm] r283796 - [ADT] Use () instead of {} in an attempt to work around MSVC 2012 ICEs.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 13:18:02 PDT 2016


Author: jlebar
Date: Mon Oct 10 15:18:02 2016
New Revision: 283796

URL: http://llvm.org/viewvc/llvm-project?rev=283796&view=rev
Log:
[ADT] Use () instead of {} in an attempt to work around MSVC 2012 ICEs.

Modified:
    llvm/trunk/include/llvm/ADT/STLExtras.h

Modified: llvm/trunk/include/llvm/ADT/STLExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/STLExtras.h?rev=283796&r1=283795&r2=283796&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Mon Oct 10 15:18:02 2016
@@ -706,12 +706,12 @@ template <typename F, typename Tuple>
 auto apply(F &&f, Tuple &&t) -> decltype(detail::apply_impl(
     std::forward<F>(f), std::forward<Tuple>(t),
     build_index_impl<
-        std::tuple_size<typename std::decay<Tuple>::type>::value>{})) {
+        std::tuple_size<typename std::decay<Tuple>::type>::value>())) {
   using Indices = build_index_impl<
       std::tuple_size<typename std::decay<Tuple>::type>::value>;
 
   return detail::apply_impl(std::forward<F>(f), std::forward<Tuple>(t),
-                            Indices{});
+                            Indices());
 }
 } // End llvm namespace
 




More information about the llvm-commits mailing list