From: Daniel Jasper Date: Thu, 30 May 2013 07:01:43 +0000 (+0000) Subject: Fix warning on varialbe unused in opt builds. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=aebc1b369c8e8b61187da85857dd49ce4e4cda5f;p=oota-llvm.git Fix warning on varialbe unused in opt builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182914 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 9e8b6fafd89..43a5a86f201 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -1486,8 +1486,7 @@ ELFObjectFile::getRelocatedSection(DataRefImpl Sec) const { if (sh_type != ELF::SHT_RELA && sh_type != ELF::SHT_REL) return end_sections(); - unsigned SecIndex = S->sh_info; - assert(SecIndex != 0); + assert(S->sh_info != 0); const Elf_Shdr *R = getSection(S->sh_info); DataRefImpl D; D.p = reinterpret_cast(R);