[clang][parse] Avoid creating StmtVectors every loop iteration

This commit is contained in:
Timm Bäder 2022-11-18 14:46:16 +01:00
parent 096c033634
commit 25bd9e1009
1 changed files with 1 additions and 1 deletions

View File

@ -37,8 +37,8 @@ StmtResult Parser::ParseStatement(SourceLocation *TrailingElseLoc,
// We may get back a null statement if we found a #pragma. Keep going until
// we get an actual statement.
StmtVector Stmts;
do {
StmtVector Stmts;
Res = ParseStatementOrDeclaration(Stmts, StmtCtx, TrailingElseLoc);
} while (!Res.isInvalid() && !Res.get());