Remove some useless declarations (found by scan-build)
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 6 Jul 2013 08:00:09 +0000 (08:00 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 6 Jul 2013 08:00:09 +0000 (08:00 +0000)
llvm-svn: 185752

clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaDeclObjC.cpp

index f5296ce..ca75a4f 100644 (file)
@@ -1543,12 +1543,11 @@ ExprResult Sema::SemaBuiltinShuffleVector(CallExpr *TheCall) {
     // with mask.  If so, verify that RHS is an integer vector type with the
     // same number of elts as lhs.
     if (TheCall->getNumArgs() == 2) {
-      if (!RHSType->hasIntegerRepresentation() || 
+      if (!RHSType->hasIntegerRepresentation() ||
           RHSType->getAs<VectorType>()->getNumElements() != numElements)
         Diag(TheCall->getLocStart(), diag::err_shufflevector_incompatible_vector)
           << SourceRange(TheCall->getArg(1)->getLocStart(),
                          TheCall->getArg(1)->getLocEnd());
-      numResElements = numElements;
     }
     else if (!Context.hasSameUnqualifiedType(LHSType, RHSType)) {
       Diag(TheCall->getLocStart(), diag::err_shufflevector_incompatible_vector)
index da98d4c..e8a6c50 100644 (file)
@@ -2333,7 +2333,6 @@ HelperSelectorsForTypoCorrection(
   else if (EditDistance < BestEditDistance) {
     BestMethod.clear();
     BestMethod.push_back(Method);
-    BestEditDistance = EditDistance;
   }
 }