summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2017-05-10 13:22:11 +0000
committerSerge Guelton <sguelton@quarkslab.com>2017-05-10 13:22:11 +0000
commite8a3a0a538e75aed7d8c1479dbaebdc2cbf03800 (patch)
treed2b514818a71937b96f49a2f63768e11ca4e85fd /clang/lib/StaticAnalyzer
parentf2dbba81830f25895e360a475e6099d15814d24f (diff)
downloadbcm5719-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.h2
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]);
}
OpenPOWER on IntegriCloud