r185752 - Remove some useless declarations (found by scan-build)
Sylvestre Ledru
sylvestre at debian.org
Sat Jul 6 01:00:10 PDT 2013
Author: sylvestre
Date: Sat Jul 6 03:00:09 2013
New Revision: 185752
URL: http://llvm.org/viewvc/llvm-project?rev=185752&view=rev
Log:
Remove some useless declarations (found by scan-build)
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=185752&r1=185751&r2=185752&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Sat Jul 6 03:00:09 2013
@@ -1543,12 +1543,11 @@ ExprResult Sema::SemaBuiltinShuffleVecto
// 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)
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=185752&r1=185751&r2=185752&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Sat Jul 6 03:00:09 2013
@@ -2333,7 +2333,6 @@ HelperSelectorsForTypoCorrection(
else if (EditDistance < BestEditDistance) {
BestMethod.clear();
BestMethod.push_back(Method);
- BestEditDistance = EditDistance;
}
}
More information about the cfe-commits
mailing list