]> granicus.if.org Git - clang/commitdiff
Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor.
authorTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 00:06:01 +0000 (00:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 00:06:01 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113448 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Stmt.cpp

index fc8898173f3e80999f0b7ddb384658cf8901f096..cc4b6c9ddb941b426f22dcd212b23d46702bfdda 100644 (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);