diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-09-09 00:06:01 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-09-09 00:06:01 +0000 |
commit | 780d885e77710626695e581e56aef228b291a9b7 (patch) | |
tree | 7aa78a5a4ab7ac807b33fae7f4d46d92ecf5486f /lib | |
parent | 559fb554602bedb57dbbf3cc14ac8a38264b4547 (diff) |
Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/Stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Stmt*>(cond); |