From e05d1e5d25fde15ec339569e79a0caa6d18dcd84 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 9 Feb 2014 03:13:07 +0000 Subject: [PATCH] tools: cast the right operand Properly apply the fix intended by SVN r201032. llvm-svn: 201036 --- tools/llvm-readobj/ARMEHABIPrinter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-readobj/ARMEHABIPrinter.h b/tools/llvm-readobj/ARMEHABIPrinter.h index 35c58ef3e46..75e2bee6b7b 100644 --- a/tools/llvm-readobj/ARMEHABIPrinter.h +++ b/tools/llvm-readobj/ARMEHABIPrinter.h @@ -376,7 +376,7 @@ PrinterContext::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(RI->r_offset) == IndexTableOffset) { + if (RI->r_offset == static_cast(IndexTableOffset)) { typename object::ELFFile::Elf_Rela RelA; RelA.r_offset = RI->r_offset; RelA.r_info = RI->r_info;