r302654 - Use clang++-3.5 compatible initializer_list constructor

Serge Guelton via cfe-commits cfe-commits at lists.llvm.org
Wed May 10 06:22:12 PDT 2017


Author: serge_sans_paille
Date: Wed May 10 08:22:11 2017
New Revision: 302654

URL: http://llvm.org/viewvc/llvm-project?rev=302654&view=rev
Log:
Use clang++-3.5 compatible initializer_list constructor

Otherwise, a warning is issued.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/SelectorExtras.h

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/SelectorExtras.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/SelectorExtras.h?rev=302654&r1=302653&r2=302654&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/SelectorExtras.h (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/SelectorExtras.h Wed May 10 08:22:11 2017
@@ -20,7 +20,7 @@ static inline Selector getKeywordSelecto
                                           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]);
 }




More information about the cfe-commits mailing list