diff options
| author | Serge Guelton <sguelton@quarkslab.com> | 2017-05-10 13:22:11 +0000 |
|---|---|---|
| committer | Serge Guelton <sguelton@quarkslab.com> | 2017-05-10 13:22:11 +0000 |
| commit | e8a3a0a538e75aed7d8c1479dbaebdc2cbf03800 (patch) | |
| tree | d2b514818a71937b96f49a2f63768e11ca4e85fd /clang/lib/StaticAnalyzer | |
| parent | f2dbba81830f25895e360a475e6099d15814d24f (diff) | |
| download | bcm5719-llvm-e8a3a0a538e75aed7d8c1479dbaebdc2cbf03800.tar.gz bcm5719-llvm-e8a3a0a538e75aed7d8c1479dbaebdc2cbf03800.zip | |
Use clang++-3.5 compatible initializer_list constructor
Otherwise, a warning is issued.
llvm-svn: 302654
Diffstat (limited to 'clang/lib/StaticAnalyzer')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h b/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h index a52f2c514b2..b11d070c629 100644 --- a/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h +++ b/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h @@ -20,7 +20,7 @@ static inline Selector getKeywordSelector(ASTContext &Ctx, IdentifierInfos *... IIs) { static_assert(sizeof...(IdentifierInfos), "keyword selectors must have at least one argument"); - SmallVector<IdentifierInfo *, 10> II{{&Ctx.Idents.get(IIs)...}}; + SmallVector<IdentifierInfo *, 10> II({&Ctx.Idents.get(IIs)...}); return Ctx.Selectors.getSelector(II.size(), &II[0]); } |

