[NFC] Silence compiler warning [-Wmissing-braces].
authorHuihui Zhang <huihuiz@quicinc.com>
Sun, 12 Apr 2020 21:41:03 +0000 (14:41 -0700)
committerHuihui Zhang <huihuiz@quicinc.com>
Sun, 12 Apr 2020 21:42:59 +0000 (14:42 -0700)
llvm/include/llvm/Support/FormatVariadic.h:146:15: warning: suggest braces around initialization of subobject [-Wmissing-braces]
      return {&Items...};
              ^~~~~~
              {     }

llvm/include/llvm/Support/FormatVariadic.h

index 16debe2..dfafc3c 100644 (file)
@@ -143,7 +143,7 @@ template <typename Tuple> class formatv_object : public formatv_object_base {
     template <typename... Ts>
     std::array<detail::format_adapter *, std::tuple_size<Tuple>::value>
     operator()(Ts &... Items) {
-      return {&Items...};
+      return {{&Items...}};
     }
   };