Remove dead variables.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133346 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index a79f031..a12365e 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -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);
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 0e68c3e..20ccdb7 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -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();
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp
index ce9c262..ede2302 100644
--- a/lib/CodeGen/CGObjC.cpp
+++ b/lib/CodeGen/CGObjC.cpp
@@ -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;
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp
index 4f28321..8a6c964 100644
--- a/lib/Parse/ParseObjc.cpp
+++ b/lib/Parse/ParseObjc.cpp
@@ -864,7 +864,6 @@
   }
 
   // Now parse the selector.
-  SourceLocation SelectorStartLoc = Tok.getLocation();
   SourceLocation selLoc;
   IdentifierInfo *SelIdent = ParseObjCSelectorPiece(selLoc);