[llvm] r241348 - Avoid warning about unused variable when building without assertions.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 3 05:53:51 PDT 2015
Author: rafael
Date: Fri Jul 3 07:53:50 2015
New Revision: 241348
URL: http://llvm.org/viewvc/llvm-project?rev=241348&view=rev
Log:
Avoid warning about unused variable when building without assertions.
Modified:
llvm/trunk/include/llvm/Object/ELFObjectFile.h
Modified: llvm/trunk/include/llvm/Object/ELFObjectFile.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELFObjectFile.h?rev=241348&r1=241347&r2=241348&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELFObjectFile.h (original)
+++ llvm/trunk/include/llvm/Object/ELFObjectFile.h Fri Jul 3 07:53:50 2015
@@ -254,8 +254,8 @@ protected:
DRI.d.b = 0;
return DRI;
}
- uint32_t Type = SymTable->sh_type;
- assert(Type == ELF::SHT_SYMTAB || Type == ELF::SHT_DYNSYM);
+ assert(SymTable->sh_type == ELF::SHT_SYMTAB ||
+ SymTable->sh_type == ELF::SHT_DYNSYM);
uintptr_t SHT = reinterpret_cast<uintptr_t>(EF.section_begin());
unsigned SymTableIndex =
More information about the llvm-commits
mailing list