forked from OSchip/llvm-project
Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor.
llvm-svn: 113448
This commit is contained in:
parent
c42f345157
commit
fd525ef338
|
@ -530,7 +530,7 @@ void ForStmt::setConditionVariable(ASTContext &C, VarDecl *V) {
|
|||
}
|
||||
|
||||
SwitchStmt::SwitchStmt(ASTContext &C, VarDecl *Var, Expr *cond)
|
||||
: Stmt(SwitchStmtClass), FirstCase(0)
|
||||
: Stmt(SwitchStmtClass), FirstCase(0), AllEnumCasesCovered(0)
|
||||
{
|
||||
setConditionVariable(C, Var);
|
||||
SubExprs[COND] = reinterpret_cast<Stmt*>(cond);
|
||||
|
|
Loading…
Reference in New Issue