================
@@ -679,11 +685,17 @@ static void DiagnoseLabelFollowedByDecl(Parser &P, const 
Stmt *SubStmt) {
   }
 }
 
-StmtResult Parser::ParseLabeledStatement(ParsedAttributes &Attrs,
-                                         ParsedStmtContext StmtCtx) {
+StmtResult
+Parser::ParseLabeledStatement(ParsedAttributes &Attrs,
+                              ParsedStmtContext StmtCtx,
+                              SmallVectorImpl<LabelDecl *> *LoopOrSwitchNames) 
{
   assert(Tok.is(tok::identifier) && Tok.getIdentifierInfo() &&
          "Not an identifier!");
 
+  SmallVector<LabelDecl *, 1> LoopOrSwitchNamesStorage;
----------------
shafik wrote:

This feels like a bit overly clever code here and the next two lines. 

https://github.com/llvm/llvm-project/pull/152870
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to