1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix warning on varialbe unused in opt builds.

llvm-svn: 182914
This commit is contained in:
Daniel Jasper 2013-05-30 07:01:43 +00:00
parent 1769d5a71b
commit 3fb2fd6c69

View File

@ -1486,8 +1486,7 @@ ELFObjectFile<ELFT>::getRelocatedSection(DataRefImpl Sec) const {
if (sh_type != ELF::SHT_RELA && sh_type != ELF::SHT_REL) if (sh_type != ELF::SHT_RELA && sh_type != ELF::SHT_REL)
return end_sections(); return end_sections();
unsigned SecIndex = S->sh_info; assert(S->sh_info != 0);
assert(SecIndex != 0);
const Elf_Shdr *R = getSection(S->sh_info); const Elf_Shdr *R = getSection(S->sh_info);
DataRefImpl D; DataRefImpl D;
D.p = reinterpret_cast<uintptr_t>(R); D.p = reinterpret_cast<uintptr_t>(R);