From: Richard Trieu Date: Fri, 19 Feb 2016 00:15:50 +0000 (+0000) Subject: Fix my typo from r261278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00a50daf94a73c4b02056cdfdce88feb660b9f88;p=clang Fix my typo from r261278 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261285 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index f3714072ce..ad6280d6c7 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -9898,7 +9898,7 @@ void Sema::DiagnoseCommaOperator(const Expr *LHS, SourceLocation Loc) { // The whitelisted locations are the initialization and increment portions // of a for loop. The additional checks are on the condition of // if statements, do/while loops, and for loops. - const unsigned ForIncreamentFlags = + const unsigned ForIncrementFlags = Scope::ControlScope | Scope::ContinueScope | Scope::BreakScope; const unsigned ForInitFlags = Scope::ControlScope | Scope::DeclScope; const unsigned ScopeFlags = getCurScope()->getFlags();