summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-02-09 01:12:21 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-02-09 01:12:21 +0000
commit8e616d32bd6a2ef4fb3326b4d4664b426369def9 (patch)
tree134eac498cf2840c16cfd2c588a03ca056fc9a8f /tools/llvm-readobj
parent804bd9d73627a3f0cdf30223ab65a8ce7e302bab (diff)
tools: explicitly cast to avoid a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj')
-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 6f0797b0763..35c58ef3e46 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 (RI->r_offset == IndexTableOffset) {
+ if (static_cast<unsigned>(RI->r_offset) == IndexTableOffset) {
typename object::ELFFile<ET>::Elf_Rela RelA;
RelA.r_offset = RI->r_offset;
RelA.r_info = RI->r_info;