]> granicus.if.org Git - clang/commitdiff
Remove unused variables noticed by GCC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 27 Aug 2011 17:54:32 +0000 (17:54 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 27 Aug 2011 17:54:32 +0000 (17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138707 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGException.cpp
lib/Serialization/ASTReader.cpp

index 0605f62b2790d63c272ca46c0b7312feb105a007..5d6f57247c9e7b7e287439a86385e732b90170c9 100644 (file)
@@ -477,7 +477,6 @@ static void emitFilterDispatchBlock(CodeGenFunction &CGF,
     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
index c991cc07764274eed6271d557a47956341feacf1..2817d86d36da854f8406857268e12f62df0b83d6 100644 (file)
@@ -528,7 +528,6 @@ ASTSelectorLookupTrait::ReadData(Selector, const unsigned char* d,
   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 @@ ASTSelectorLookupTrait::ReadData(Selector, const unsigned char* d,
   }
 
   // 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 @@ ASTReader::ReadASTBlock(Module &F) {
 
   // 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 @@ ASTReader::ReadASTBlock(Module &F) {
         }
         break;
       }
-      First = false;
       continue;
     }
 
@@ -2468,7 +2464,6 @@ ASTReader::ReadASTBlock(Module &F) {
         KnownNamespaces.push_back(getGlobalDeclID(F, Record[I]));
       break;
     }
-    First = false;
   }
   Error("premature end of bitstream in AST file");
   return Failure;