diff options
| -rw-r--r-- | clang/AST/CFG.cpp | 2 | ||||
| -rw-r--r-- | clang/Parse/ParseObjc.cpp | 2 | ||||
| -rw-r--r-- | clang/Sema/SemaDecl.cpp | 2 | 
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/AST/CFG.cpp b/clang/AST/CFG.cpp index d91f9c3c57f..e1c1a7474c3 100644 --- a/clang/AST/CFG.cpp +++ b/clang/AST/CFG.cpp @@ -393,7 +393,7 @@ CFGBlock* CFGBuilder::VisitNullStmt(NullStmt* Statement) {  CFGBlock* CFGBuilder::VisitCompoundStmt(CompoundStmt* C) {    //   The value returned from this function is the last created CFGBlock    //   that represents the "entry" point for the translated AST node. -  CFGBlock* LastBlock; +  CFGBlock* LastBlock = 0;    for (CompoundStmt::reverse_body_iterator I = C->body_rbegin(),         E = C->body_rend(); I != E; ++I ) diff --git a/clang/Parse/ParseObjc.cpp b/clang/Parse/ParseObjc.cpp index 16434cdcddb..9da15fafd27 100644 --- a/clang/Parse/ParseObjc.cpp +++ b/clang/Parse/ParseObjc.cpp @@ -445,7 +445,7 @@ Parser::TypeTy *Parser::ParseObjCTypeName() {    assert(Tok.getKind() == tok::l_paren && "expected (");    SourceLocation LParenLoc = ConsumeParen(), RParenLoc; -  TypeTy *Ty; +  TypeTy *Ty = 0;    while (isObjCTypeQualifier())      ConsumeToken(); diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp index ae9c719471b..dd8fe22cc94 100644 --- a/clang/Sema/SemaDecl.cpp +++ b/clang/Sema/SemaDecl.cpp @@ -485,7 +485,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl) {      QualType R = GetTypeForDeclarator(D, S);      assert(!R.isNull() && "GetTypeForDeclarator() returned null type"); -    FunctionDecl::StorageClass SC; +    FunctionDecl::StorageClass SC = FunctionDecl::None;      switch (D.getDeclSpec().getStorageClassSpec()) {        default: assert(0 && "Unknown storage class!");        case DeclSpec::SCS_auto:          | 

