summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-07-06 08:00:09 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-07-06 08:00:09 +0000
commit8e5d82e541bf6cd14af2b95c4e98f229775c1668 (patch)
treee2ab44b1fb41fa3af86484df44720e878002a858 /clang/lib/Sema/SemaChecking.cpp
parent11dd1d04ca5dff18da64f0bbc3c02d3eb2066d6e (diff)
downloadbcm5719-llvm-8e5d82e541bf6cd14af2b95c4e98f229775c1668.tar.gz
bcm5719-llvm-8e5d82e541bf6cd14af2b95c4e98f229775c1668.zip
Remove some useless declarations (found by scan-build)
llvm-svn: 185752
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index f5296ce70fb..ca75a4f1b8a 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<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)
OpenPOWER on IntegriCloud