Cleanup dead assignments reported by scan-build

llvm-svn: 204569
This commit is contained in:
Arnaud A. de Grandmaison 2014-03-23 20:28:07 +00:00
parent 561e0dce59
commit 6756a497a1
3 changed files with 2 additions and 8 deletions

View File

@ -3120,9 +3120,6 @@ static Value *packTBLDVectorList(CodeGenFunction &CGF, ArrayRef<Value *> 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

View File

@ -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) {

View File

@ -805,8 +805,6 @@ Sema::BuildAnonymousStructUnionMemberReference(const CXXScopeSpec &SS,
if (!result)
return ExprError();
baseObjectIsPointer = false;
// FIXME: check qualified member access
}