[cfe-commits] r142756 - /cfe/trunk/lib/Sema/MultiInitializer.cpp

Peter Collingbourne peter at pcc.me.uk
Sun Oct 23 11:59:33 PDT 2011


Author: pcc
Date: Sun Oct 23 13:59:33 2011
New Revision: 142756

URL: http://llvm.org/viewvc/llvm-project?rev=142756&view=rev
Log:
Improve unexpanded parameter pack diagnostics by using UPPC_Initializer here.

Modified:
    cfe/trunk/lib/Sema/MultiInitializer.cpp

Modified: cfe/trunk/lib/Sema/MultiInitializer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/MultiInitializer.cpp?rev=142756&r1=142755&r2=142756&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/MultiInitializer.cpp (original)
+++ cfe/trunk/lib/Sema/MultiInitializer.cpp Sun Oct 23 13:59:33 2011
@@ -56,9 +56,10 @@
 
 bool MultiInitializer::DiagnoseUnexpandedParameterPack(Sema &SemaRef) const {
   if (isInitializerList())
-    return SemaRef.DiagnoseUnexpandedParameterPack(getInitList());
+    return SemaRef.DiagnoseUnexpandedParameterPack(getInitList(),
+                                                   Sema::UPPC_Initializer);
   for (iterator I = begin(), E = end(); I != E; ++I) {
-    if (SemaRef.DiagnoseUnexpandedParameterPack(*I))
+    if (SemaRef.DiagnoseUnexpandedParameterPack(*I, Sema::UPPC_Initializer))
       return true;
   }
   return false;





More information about the cfe-commits mailing list