forked from OSchip/llvm-project
parent
36706852d3
commit
54f82bfb80
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue