forked from OSchip/llvm-project
Cleanup dead assignments reported by scan-build
llvm-svn: 204569
This commit is contained in:
parent
561e0dce59
commit
6756a497a1
|
@ -3120,9 +3120,6 @@ static Value *packTBLDVectorList(CodeGenFunction &CGF, ArrayRef<Value *> Ops,
|
||||||
ZeroTbl, SV, Name));
|
ZeroTbl, SV, Name));
|
||||||
}
|
}
|
||||||
|
|
||||||
TblTy = llvm::VectorType::get(TblTy->getElementType(),
|
|
||||||
2*TblTy->getNumElements());
|
|
||||||
|
|
||||||
Function *TblF;
|
Function *TblF;
|
||||||
TblOps.push_back(IndexOp);
|
TblOps.push_back(IndexOp);
|
||||||
TblF = CGF.CGM.getIntrinsic(IntID, ResTy);
|
TblF = CGF.CGM.getIntrinsic(IntID, ResTy);
|
||||||
|
@ -3190,7 +3187,6 @@ static Value *EmitAArch64TblBuiltinExpr(CodeGenFunction &CGF,
|
||||||
Ops.push_back(CGF.EmitScalarExpr(E->getArg(i)));
|
Ops.push_back(CGF.EmitScalarExpr(E->getArg(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
Arg = E->getArg(TblPos);
|
|
||||||
unsigned nElts = VTy->getNumElements();
|
unsigned nElts = VTy->getNumElements();
|
||||||
|
|
||||||
// AArch64 scalar builtins are not overloaded, they do not have an extra
|
// AArch64 scalar builtins are not overloaded, they do not have an extra
|
||||||
|
|
|
@ -2933,11 +2933,11 @@ void Parser::ParseLexedObjCMethodDefs(LexedMethod &LM, bool parseMethod) {
|
||||||
else
|
else
|
||||||
Actions.ActOnStartOfFunctionDef(getCurScope(), MCDecl);
|
Actions.ActOnStartOfFunctionDef(getCurScope(), MCDecl);
|
||||||
if (Tok.is(tok::kw_try))
|
if (Tok.is(tok::kw_try))
|
||||||
MCDecl = ParseFunctionTryBlock(MCDecl, BodyScope);
|
ParseFunctionTryBlock(MCDecl, BodyScope);
|
||||||
else {
|
else {
|
||||||
if (Tok.is(tok::colon))
|
if (Tok.is(tok::colon))
|
||||||
ParseConstructorInitializer(MCDecl);
|
ParseConstructorInitializer(MCDecl);
|
||||||
MCDecl = ParseFunctionStatementBody(MCDecl, BodyScope);
|
ParseFunctionStatementBody(MCDecl, BodyScope);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Tok.getLocation() != OrigLoc) {
|
if (Tok.getLocation() != OrigLoc) {
|
||||||
|
|
|
@ -805,8 +805,6 @@ Sema::BuildAnonymousStructUnionMemberReference(const CXXScopeSpec &SS,
|
||||||
if (!result)
|
if (!result)
|
||||||
return ExprError();
|
return ExprError();
|
||||||
|
|
||||||
baseObjectIsPointer = false;
|
|
||||||
|
|
||||||
// FIXME: check qualified member access
|
// FIXME: check qualified member access
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue