summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit751447a3acf53309fbaa3a1a9d20757d4c0cc6c6 (patch)
tree664f0e447023b2ea7df08f8f9dae693d85cdda25 /llvm/lib/Object/Archive.cpp
parentf5d46005b654ddb8a7f4de465c364df33ba76be1 (diff)
downloadbcm5719-llvm-751447a3acf53309fbaa3a1a9d20757d4c0cc6c6.tar.gz
bcm5719-llvm-751447a3acf53309fbaa3a1a9d20757d4c0cc6c6.zip
Remove a useless declarations (found by scan-build)
llvm-svn: 185709
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
-rw-r--r--llvm/lib/Object/Archive.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp
index 27676cf454a..1b6386f0be3 100644
--- a/llvm/lib/Object/Archive.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud