diff options
author | Daniel Jasper <djasper@google.com> | 2013-05-30 07:01:43 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-05-30 07:01:43 +0000 |
commit | aebc1b369c8e8b61187da85857dd49ce4e4cda5f (patch) | |
tree | bcf7a276b403a384ab7129e6521891e9e4dff4b8 /include | |
parent | d5ae2c3a75ccc70290fb19e9424418e9f3b5c17b (diff) | |
download | external_llvm-aebc1b369c8e8b61187da85857dd49ce4e4cda5f.zip external_llvm-aebc1b369c8e8b61187da85857dd49ce4e4cda5f.tar.gz external_llvm-aebc1b369c8e8b61187da85857dd49ce4e4cda5f.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 9e8b6fa..43a5a86 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -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); |