Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor.

llvm-svn: 113448
This commit is contained in:
Ted Kremenek 2010-09-09 00:06:01 +00:00
parent c42f345157
commit fd525ef338
1 changed files with 1 additions and 1 deletions

View File

@ -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);