]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283796 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/STLExtras.h

index 57134885cede3b43932ecdde1b02b140edc40568..e0d06f9f94a09509ff11964dd36f2e1652ebdb27 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