Fix warning on varialbe unused in opt builds.
authorDaniel Jasper <djasper@google.com>
Thu, 30 May 2013 07:01:43 +0000 (07:01 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 30 May 2013 07:01:43 +0000 (07:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182914 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index 9e8b6fafd89a2ecec5f61cc3d103aeb7aec5d055..43a5a86f201d6d4e168097567a3fddc13aa5dbab 100644 (file)
@@ -1486,8 +1486,7 @@ ELFObjectFile<ELFT>::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<uintptr_t>(R);