summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-02-09 03:13:07 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-02-09 03:13:07 +0000
commit12ea35fc6a64ab4e0d4194a198e01974f76fd2dd (patch)
treeeede1bf2f3b47943080a64abe866c10cfab18ea3 /tools
parent81756b98aa33bccf699ef456aec5887980059451 (diff)
tools: cast the right operand
Properly apply the fix intended by SVN r201032. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-readobj/ARMEHABIPrinter.h2
1 files changed, 1 insertions, 1 deletions
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<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;