From 751447a3acf53309fbaa3a1a9d20757d4c0cc6c6 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 5 Jul 2013 15:58:12 +0000 Subject: Remove a useless declarations (found by scan-build) llvm-svn: 185709 --- llvm/lib/Object/Archive.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/Object/Archive.cpp') 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(buf); - buf += sizeof(uint32_t) + (symbol_count * (sizeof(uint32_t))); } else if (kind() == K_BSD) { llvm_unreachable("BSD archive format is not supported"); } else { -- cgit v1.2.3