diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-27 17:54:32 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-27 17:54:32 +0000 |
| commit | 1174675c7b4872d9ef644a817b460c1f918c1586 (patch) | |
| tree | a76e99acfe63546bb6efc54a5867fcc72a40ecf4 | |
| parent | 61a1ff543cde49f49666d8cb7d49b23ef4fe33a8 (diff) | |
| download | bcm5719-llvm-1174675c7b4872d9ef644a817b460c1f918c1586.tar.gz bcm5719-llvm-1174675c7b4872d9ef644a817b460c1f918c1586.zip | |
Remove unused variables noticed by GCC.
llvm-svn: 138707
| -rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 0605f62b279..5d6f57247c9 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -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 diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index c991cc07764..2817d86d36d 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -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; |

