Skip to content
Snippets Groups Projects
Commit 00a50daf authored by Richard Trieu's avatar Richard Trieu
Browse files

Fix my typo from r261278

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261285 91177308-0d34-0410-b5e6-96231b3b80d8
parent ba3bb7db
No related branches found
No related tags found
No related merge requests found
...@@ -9898,7 +9898,7 @@ void Sema::DiagnoseCommaOperator(const Expr *LHS, SourceLocation Loc) { ...@@ -9898,7 +9898,7 @@ void Sema::DiagnoseCommaOperator(const Expr *LHS, SourceLocation Loc) {
// The whitelisted locations are the initialization and increment portions // The whitelisted locations are the initialization and increment portions
// of a for loop. The additional checks are on the condition of // of a for loop. The additional checks are on the condition of
// if statements, do/while loops, and for loops. // if statements, do/while loops, and for loops.
const unsigned ForIncreamentFlags = const unsigned ForIncrementFlags =
Scope::ControlScope | Scope::ContinueScope | Scope::BreakScope; Scope::ControlScope | Scope::ContinueScope | Scope::BreakScope;
const unsigned ForInitFlags = Scope::ControlScope | Scope::DeclScope; const unsigned ForInitFlags = Scope::ControlScope | Scope::DeclScope;
const unsigned ScopeFlags = getCurScope()->getFlags(); const unsigned ScopeFlags = getCurScope()->getFlags();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment