From: Sylvestre Ledru Date: Sat, 6 Jul 2013 08:00:09 +0000 (+0000) Subject: Remove some useless declarations (found by scan-build) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e5d82e541bf6cd14af2b95c4e98f229775c1668;p=platform%2Fupstream%2Fllvm.git Remove some useless declarations (found by scan-build) llvm-svn: 185752 --- diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index f5296ce..ca75a4f 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -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()->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) diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index da98d4c..e8a6c50 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -2333,7 +2333,6 @@ HelperSelectorsForTypoCorrection( else if (EditDistance < BestEditDistance) { BestMethod.clear(); BestMethod.push_back(Method); - BestEditDistance = EditDistance; } }