summaryrefslogtreecommitdiff
path: root/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-07-05 15:58:12 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-07-05 15:58:12 +0000
commit23191804e8cab4e60c82cd39f3a7d2ea152489a5 (patch)
treea722cc25c1c6216f3fbdd0e68eb7ab96f103f86b /lib/Object/Archive.cpp
parent71804149a3a6f6c081b874869b27fafe7d3288ce (diff)
downloadllvm-23191804e8cab4e60c82cd39f3a7d2ea152489a5.tar.gz
llvm-23191804e8cab4e60c82cd39f3a7d2ea152489a5.tar.bz2
llvm-23191804e8cab4e60c82cd39f3a7d2ea152489a5.tar.xz
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
Diffstat (limited to 'lib/Object/Archive.cpp')
-rw-r--r--lib/Object/Archive.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp
index 27676cf454..1b6386f0be 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<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 {