From: Arnaud A. de Grandmaison Date: Sun, 23 Mar 2014 20:28:07 +0000 (+0000) Subject: Cleanup dead assignments reported by scan-build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7d4db0911c37051fffbb78ee954838e4829eed6;p=clang Cleanup dead assignments reported by scan-build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204569 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index 76493254e7..7a46642847 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -3120,9 +3120,6 @@ static Value *packTBLDVectorList(CodeGenFunction &CGF, ArrayRef Ops, ZeroTbl, SV, Name)); } - TblTy = llvm::VectorType::get(TblTy->getElementType(), - 2*TblTy->getNumElements()); - Function *TblF; TblOps.push_back(IndexOp); TblF = CGF.CGM.getIntrinsic(IntID, ResTy); @@ -3190,7 +3187,6 @@ static Value *EmitAArch64TblBuiltinExpr(CodeGenFunction &CGF, Ops.push_back(CGF.EmitScalarExpr(E->getArg(i))); } - Arg = E->getArg(TblPos); unsigned nElts = VTy->getNumElements(); // AArch64 scalar builtins are not overloaded, they do not have an extra diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 4a5625d3f7..8697c08bb5 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -2933,11 +2933,11 @@ void Parser::ParseLexedObjCMethodDefs(LexedMethod &LM, bool parseMethod) { else Actions.ActOnStartOfFunctionDef(getCurScope(), MCDecl); if (Tok.is(tok::kw_try)) - MCDecl = ParseFunctionTryBlock(MCDecl, BodyScope); + ParseFunctionTryBlock(MCDecl, BodyScope); else { if (Tok.is(tok::colon)) ParseConstructorInitializer(MCDecl); - MCDecl = ParseFunctionStatementBody(MCDecl, BodyScope); + ParseFunctionStatementBody(MCDecl, BodyScope); } if (Tok.getLocation() != OrigLoc) { diff --git a/lib/Sema/SemaExprMember.cpp b/lib/Sema/SemaExprMember.cpp index 9f1ac516ea..354dfcf389 100644 --- a/lib/Sema/SemaExprMember.cpp +++ b/lib/Sema/SemaExprMember.cpp @@ -805,8 +805,6 @@ Sema::BuildAnonymousStructUnionMemberReference(const CXXScopeSpec &SS, if (!result) return ExprError(); - baseObjectIsPointer = false; - // FIXME: check qualified member access }