[cfe-commits] r138707 - in /cfe/trunk/lib: CodeGen/CGException.cpp Serialization/ASTReader.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Aug 27 10:54:33 PDT 2011


Author: d0k
Date: Sat Aug 27 12:54:32 2011
New Revision: 138707

URL: http://llvm.org/viewvc/llvm-project?rev=138707&view=rev
Log:
Remove unused variables noticed by GCC.

Modified:
    cfe/trunk/lib/CodeGen/CGException.cpp
    cfe/trunk/lib/Serialization/ASTReader.cpp

Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=138707&r1=138706&r2=138707&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Sat Aug 27 12:54:32 2011
@@ -477,7 +477,6 @@
     return;
   }
 
-  CGBuilderTy::InsertPoint savedIP = CGF.Builder.saveIP();
   CGF.EmitBlockAfterUses(dispatchBlock);
 
   // If this isn't a catch-all filter, we need to check whether we got

Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=138707&r1=138706&r2=138707&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Sat Aug 27 12:54:32 2011
@@ -528,7 +528,6 @@
   unsigned NumFactoryMethods = ReadUnalignedLE16(d);
 
   // Load instance methods
-  ObjCMethodList *Prev = 0;
   for (unsigned I = 0; I != NumInstanceMethods; ++I) {
     if (ObjCMethodDecl *Method
           = Reader.GetLocalDeclAs<ObjCMethodDecl>(F, ReadUnalignedLE32(d)))
@@ -536,7 +535,6 @@
   }
 
   // Load factory methods
-  Prev = 0;
   for (unsigned I = 0; I != NumFactoryMethods; ++I) {
     if (ObjCMethodDecl *Method
           = Reader.GetLocalDeclAs<ObjCMethodDecl>(F, ReadUnalignedLE32(d)))
@@ -1753,7 +1751,6 @@
 
   // Read all of the records and blocks for the ASt file.
   RecordData Record;
-  bool First = true;
   while (!Stream.AtEndOfStream()) {
     unsigned Code = Stream.ReadCode();
     if (Code == llvm::bitc::END_BLOCK) {
@@ -1827,7 +1824,6 @@
         }
         break;
       }
-      First = false;
       continue;
     }
 
@@ -2468,7 +2464,6 @@
         KnownNamespaces.push_back(getGlobalDeclID(F, Record[I]));
       break;
     }
-    First = false;
   }
   Error("premature end of bitstream in AST file");
   return Failure;





More information about the cfe-commits mailing list