[ADT] Use () instead of {} in an attempt to work around MSVC 2012 ICEs.
authorJustin Lebar <jlebar@google.com>
Mon, 10 Oct 2016 20:18:02 +0000 (20:18 +0000)
committerJustin Lebar <jlebar@google.com>
Mon, 10 Oct 2016 20:18:02 +0000 (20:18 +0000)
llvm-svn: 283796

llvm/include/llvm/ADT/STLExtras.h

index 5713488..e0d06f9 100644 (file)
@@ -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