[llvm] r182914 - Fix warning on varialbe unused in opt builds.

Daniel Jasper djasper at google.com
Thu May 30 00:01:43 PDT 2013


Author: djasper
Date: Thu May 30 02:01:43 2013
New Revision: 182914

URL: http://llvm.org/viewvc/llvm-project?rev=182914&view=rev
Log:
Fix warning on varialbe unused in opt builds.

Modified:
    llvm/trunk/include/llvm/Object/ELF.h

Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=182914&r1=182913&r2=182914&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Thu May 30 02:01:43 2013
@@ -1486,8 +1486,7 @@ ELFObjectFile<ELFT>::getRelocatedSection
   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);





More information about the llvm-commits mailing list