From 9a6242425d26f01b14bbd719e4453d89ae0f0ce3 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 3 Dec 2013 07:36:55 +0000 Subject: [PATCH] Parse: Fix references to 'if' that meant 'for', 'do', and 'while' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196229 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Parse/ParseStmt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index 6cbb68e9dd..35c71889c1 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -1280,7 +1280,7 @@ StmtResult Parser::ParseWhileStatement(SourceLocation *TrailingElseLoc) { FullExprArg FullCond(Actions.MakeFullExpr(Cond.get(), WhileLoc)); - // C99 6.8.5p5 - In C99, the body of the if statement is a scope, even if + // C99 6.8.5p5 - In C99, the body of the while statement is a scope, even if // there is no compound stmt. C90 does not have this clause. We only do this // if the body isn't a compound statement to avoid push/pop in common cases. // @@ -1325,7 +1325,7 @@ StmtResult Parser::ParseDoStatement() { ParseScope DoScope(this, ScopeFlags); - // C99 6.8.5p5 - In C99, the body of the if statement is a scope, even if + // C99 6.8.5p5 - In C99, the body of the do statement is a scope, even if // there is no compound stmt. C90 does not have this clause. We only do this // if the body isn't a compound statement to avoid push/pop in common cases. // @@ -1611,7 +1611,7 @@ StmtResult Parser::ParseForStatement(SourceLocation *TrailingElseLoc) { T.getCloseLocation()); } - // C99 6.8.5p5 - In C99, the body of the if statement is a scope, even if + // C99 6.8.5p5 - In C99, the body of the for statement is a scope, even if // there is no compound stmt. C90 does not have this clause. We only do this // if the body isn't a compound statement to avoid push/pop in common cases. // -- 2.50.1