tools: cast the right operand

Properly apply the fix intended by SVN r201032.

llvm-svn: 201036
This commit is contained in:
Saleem Abdulrasool 2014-02-09 03:13:07 +00:00
parent b829418bc3
commit d1fc17b931
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ PrinterContext<ET>::FindExceptionTable(unsigned IndexSectionIndex,
if (SI->sh_type == ELF::SHT_REL && SI->sh_info == IndexSectionIndex) {
for (Elf_Rel_iterator RI = ELF->begin_rel(&*SI), RE = ELF->end_rel(&*SI);
RI != RE; ++RI) {
if (static_cast<unsigned>(RI->r_offset) == IndexTableOffset) {
if (RI->r_offset == static_cast<unsigned>(IndexTableOffset)) {
typename object::ELFFile<ET>::Elf_Rela RelA;
RelA.r_offset = RI->r_offset;
RelA.r_info = RI->r_info;