From: Serge Guelton Date: Wed, 10 May 2017 13:22:11 +0000 (+0000) Subject: Use clang++-3.5 compatible initializer_list constructor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3bbcec5d714f9d457c99032e5b02c75d44b0d70;p=clang 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 --- diff --git a/lib/StaticAnalyzer/Checkers/SelectorExtras.h b/lib/StaticAnalyzer/Checkers/SelectorExtras.h index a52f2c514b..b11d070c62 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 II{{&Ctx.Idents.get(IIs)...}}; + SmallVector II({&Ctx.Idents.get(IIs)...}); return Ctx.Selectors.getSelector(II.size(), &II[0]); }