From 23191804e8cab4e60c82cd39f3a7d2ea152489a5 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 5 Jul 2013 15:58:12 +0000 Subject: [PATCH] Remove a useless declarations (found by scan-build) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185709 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/Archive.cpp | 1 - lib/Transforms/Scalar/CodeGenPrepare.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index 27676cf454a..1b6386f0be3 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -294,7 +294,6 @@ Archive::symbol_iterator Archive::end_symbols() const { uint32_t symbol_count = 0; if (kind() == K_GNU) { symbol_count = *reinterpret_cast(buf); - buf += sizeof(uint32_t) + (symbol_count * (sizeof(uint32_t))); } else if (kind() == K_BSD) { llvm_unreachable("BSD archive format is not supported"); } else { diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index ec8491f1a93..23561b90233 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -868,7 +868,6 @@ void ExtAddrMode::print(raw_ostream &OS) const { OS << (NeedPlus ? " + " : "") << Scale << "*"; WriteAsOperand(OS, ScaledReg, /*PrintType=*/false); - NeedPlus = true; } OS << ']'; -- 2.34.1