From f3bbcec5d714f9d457c99032e5b02c75d44b0d70 Mon Sep 17 00:00:00 2001 From: Serge Guelton <sguelton@quarkslab.com> Date: Wed, 10 May 2017 13:22:11 +0000 Subject: [PATCH] Use clang++-3.5 compatible initializer_list constructor Otherwise, a warning is issued. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302654 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Checkers/SelectorExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/StaticAnalyzer/Checkers/SelectorExtras.h b/lib/StaticAnalyzer/Checkers/SelectorExtras.h index a52f2c514b2..b11d070c629 100644 --- a/lib/StaticAnalyzer/Checkers/SelectorExtras.h +++ b/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]); } -- GitLab