]> granicus.if.org Git - clang/commitdiff
Fix my typo from r261278
authorRichard Trieu <rtrieu@google.com>
Fri, 19 Feb 2016 00:15:50 +0000 (00:15 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 19 Feb 2016 00:15:50 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261285 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index f3714072ce16985aeff88d2632ccb4361fd6196b..ad6280d6c74f0566b75fe0e3f4c5a9f2810a8273 100644 (file)
@@ -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();