From: Jim Grosbach Date: Fri, 8 Apr 2011 21:11:20 +0000 (+0000) Subject: Workaround g++ 4.2.1 warning diagnostic false positive. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e2e777b0e73809047d98066ebcc28042882d1cf8;p=oota-llvm.git Workaround g++ 4.2.1 warning diagnostic false positive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129149 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 9cbaaa19f84..3c3030731e0 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/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.