projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42fc785
)
[NFC] Silence compiler warning [-Wmissing-braces].
author
Huihui Zhang
<huihuiz@quicinc.com>
Sun, 12 Apr 2020 21:41:03 +0000
(14:41 -0700)
committer
Huihui 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
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/FormatVariadic.h
b/llvm/include/llvm/Support/FormatVariadic.h
index
16debe2
..
dfafc3c
100644
(file)
--- a/
llvm/include/llvm/Support/FormatVariadic.h
+++ b/
llvm/include/llvm/Support/FormatVariadic.h
@@
-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...}
};
}
};