Remove a useless declarations (found by scan-build)
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 5 Jul 2013 15:58:12 +0000 (15:58 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 5 Jul 2013 15:58:12 +0000 (15:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185709 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/Archive.cpp
lib/Transforms/Scalar/CodeGenPrepare.cpp

index 27676cf454a51c025cdee4c4f7c1ff2e3a3e41e2..1b6386f0be3211513b5cbf03e4a7c6a53581afde 100644 (file)
@@ -294,7 +294,6 @@ Archive::symbol_iterator Archive::end_symbols() const {
   uint32_t symbol_count = 0;
   if (kind() == K_GNU) {
     symbol_count = *reinterpret_cast<const support::ubig32_t*>(buf);
-    buf += sizeof(uint32_t) + (symbol_count * (sizeof(uint32_t)));
   } else if (kind() == K_BSD) {
     llvm_unreachable("BSD archive format is not supported");
   } else {
index ec8491f1a931522c991df5705a72941ef0b06b7a..23561b9023347b82270f77c56082145d79160b83 100644 (file)
@@ -868,7 +868,6 @@ void ExtAddrMode::print(raw_ostream &OS) const {
     OS << (NeedPlus ? " + " : "")
        << Scale << "*";
     WriteAsOperand(OS, ScaledReg, /*PrintType=*/false);
-    NeedPlus = true;
   }
 
   OS << ']';