]> granicus.if.org Git - clang/commitdiff
Cleanup dead assignments reported by scan-build
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Sun, 23 Mar 2014 20:28:07 +0000 (20:28 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Sun, 23 Mar 2014 20:28:07 +0000 (20:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204569 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBuiltin.cpp
lib/Parse/ParseObjc.cpp
lib/Sema/SemaExprMember.cpp

index 76493254e719b6f4f83ab7f797c10c5e3c28cf8e..7a466428477d97a9b94b2df690508f6efb812ff1 100644 (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
index 4a5625d3f74f530f523d730098791bc46a1316ab..8697c08bb5c5dc9bd05754bdb809ea3418bc939c 100644 (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) {
index 9f1ac516ea9be2f8c940b4db3da103c136477e5b..354dfcf389622ac49ab5ec47b45663c9e3afbb5d 100644 (file)
@@ -805,8 +805,6 @@ Sema::BuildAnonymousStructUnionMemberReference(const CXXScopeSpec &SS,
     if (!result)
       return ExprError();
 
-    baseObjectIsPointer = false;
-    
     // FIXME: check qualified member access
   }