[cfe-commits] r133346 - in /cfe/trunk/lib: CodeGen/CGDecl.cpp CodeGen/CGExpr.cpp CodeGen/CGObjC.cpp Parse/ParseObjc.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Jun 18 03:34:07 PDT 2011


Author: d0k
Date: Sat Jun 18 05:34:07 2011
New Revision: 133346

URL: http://llvm.org/viewvc/llvm-project?rev=133346&view=rev
Log:
Remove dead variables.

Modified:
    cfe/trunk/lib/CodeGen/CGDecl.cpp
    cfe/trunk/lib/CodeGen/CGExpr.cpp
    cfe/trunk/lib/CodeGen/CGObjC.cpp
    cfe/trunk/lib/Parse/ParseObjc.cpp

Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=133346&r1=133345&r2=133346&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Sat Jun 18 05:34:07 2011
@@ -463,7 +463,6 @@
                                      const ValueDecl *D,
                                      LValue lvalue,
                                      bool capturedByInit) {
-  QualType type = lvalue.getType();
   Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime();
   if (!lifetime) {
     llvm::Value *value = EmitScalarExpr(init);

Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=133346&r1=133345&r2=133346&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Sat Jun 18 05:34:07 2011
@@ -2111,7 +2111,6 @@
       // Automatic Reference Counting:
       //   If the pseudo-expression names a retainable object with weak or
       //   strong lifetime, the object shall be released.
-      bool isNonGC = false;
       Expr *BaseExpr = PseudoDtor->getBase();
       llvm::Value *BaseValue = NULL;
       Qualifiers BaseQuals;
@@ -2123,8 +2122,6 @@
         BaseQuals = PTy->getPointeeType().getQualifiers();
       } else {
         LValue BaseLV = EmitLValue(BaseExpr);
-        if (BaseLV.isNonGC())
-          isNonGC = true;
         BaseValue = BaseLV.getAddress();
         QualType BaseTy = BaseExpr->getType();
         BaseQuals = BaseTy.getQualifiers();

Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=133346&r1=133345&r2=133346&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Sat Jun 18 05:34:07 2011
@@ -2226,8 +2226,6 @@
 
 static TryEmitResult
 tryEmitARCRetainScalarExpr(CodeGenFunction &CGF, const Expr *e) {
-  QualType originalType = e->getType();
-
   // The desired result type, if it differs from the type of the
   // ultimate opaque expression.
   const llvm::Type *resultType = 0;

Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=133346&r1=133345&r2=133346&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Sat Jun 18 05:34:07 2011
@@ -864,7 +864,6 @@
   }
 
   // Now parse the selector.
-  SourceLocation SelectorStartLoc = Tok.getLocation();
   SourceLocation selLoc;
   IdentifierInfo *SelIdent = ParseObjCSelectorPiece(selLoc);
 





More information about the cfe-commits mailing list