From ecd7043883c79d87d737001d8e1d780d50cfc8ac Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 8 Apr 2011 21:11:20 +0000 Subject: Workaround g++ 4.2.1 warning diagnostic false positive. llvm-svn: 129149 --- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/ExecutionEngine') diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 9cbaaa19f84..3c3030731e0 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -296,7 +296,7 @@ loadSegment32(const MachOObject *Obj, return Error("invalid section index for symbol: '" + Twine() + "'"); // Just skip symbols not defined in this section. - if (STE->SectionIndex - 1 != SectNum) + if ((unsigned)STE->SectionIndex - 1 != SectNum) continue; // Get the symbol name. @@ -375,7 +375,7 @@ loadSegment64(const MachOObject *Obj, return Error("invalid section index for symbol: '" + Twine() + "'"); // Just skip symbols not defined in this section. - if (STE->SectionIndex - 1 != SectNum) + if ((unsigned)STE->SectionIndex - 1 != SectNum) continue; // Get the symbol name. -- cgit v1.2.3