]> granicus.if.org Git - clang/commitdiff
Remove dead assignment to local variable.
authorTed Kremenek <kremenek@apple.com>
Wed, 4 Apr 2012 00:55:21 +0000 (00:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 4 Apr 2012 00:55:21 +0000 (00:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153985 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaChecking.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Serialization/ASTReader.cpp

index 0e2eb3c701716155584f6f02ebe843297a751a24..74832fd32edd91977625da48f29b08327a3bf989 100644 (file)
@@ -1176,7 +1176,6 @@ bool Sema::SemaBuiltinFPClassification(CallExpr *TheCall, unsigned NumArgs) {
              "promotion from float to double is the only expected cast here");
       Cast->setSubExpr(0);
       TheCall->setArg(NumArgs-1, CastArg);
-      OrigArg = CastArg;
     }
   }
   
index a6d564e3167b566e44285cd944e9f0fb83f75402..e5dc4f5ac93e9e645dcb174e5e78decb77880704 100644 (file)
@@ -5776,7 +5776,6 @@ static bool TryNamespaceTypoCorrection(Sema &S, LookupResult &R, Scope *Sc,
     S.Diag(Corrected.getCorrectionDecl()->getLocation(),
          diag::note_namespace_defined_here) << CorrectedQuotedStr;
 
-    Ident = Corrected.getCorrectionAsIdentifierInfo();
     R.addDecl(Corrected.getCorrectionDecl());
     return true;
   }
index 2478b03449b6a439e9be7806bef3fbaada8afe02..d424f388f6355f7d3145d3dec9fa9bbb419a93e9 100644 (file)
@@ -3610,8 +3610,6 @@ Sema::ActOnCallExpr(Scope *S, Expr *Fn, SourceLocation LParenLoc,
           << FixItHint::CreateRemoval(
                                     SourceRange(Args[0]->getLocStart(),
                                                 Args[NumArgs-1]->getLocEnd()));
-
-        NumArgs = 0;
       }
 
       return Owned(new (Context) CallExpr(Context, Fn, 0, 0, Context.VoidTy,
index 840fa132828896c068e4d418930e66b0a6508581..f91b66cf54765b54905832c6c5d233fbb6316260 100644 (file)
@@ -3350,7 +3350,6 @@ bool ASTReader::ParseLanguageOptions(
     unsigned Length = Record[Idx++];
     LangOpts.CurrentModule.assign(Record.begin() + Idx, 
                                   Record.begin() + Idx + Length);
-    Idx += Length;
     return Listener->ReadLanguageOptions(LangOpts);
   }