From: Ted Kremenek Date: Thu, 9 Sep 2010 00:06:01 +0000 (+0000) Subject: Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=780d885e77710626695e581e56aef228b291a9b7;p=clang Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113448 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index fc8898173f..cc4b6c9ddb 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -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(cond);