summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-04-08 21:11:20 +0000
committerJim Grosbach <grosbach@apple.com>2011-04-08 21:11:20 +0000
commite2e777b0e73809047d98066ebcc28042882d1cf8 (patch)
tree49de3d17c228ec1b616906198a6b7197132ef67d /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
parentee10b13a4408781fd5f255527e3c51cd24dc96ef (diff)
downloadllvm-e2e777b0e73809047d98066ebcc28042882d1cf8.tar.gz
llvm-e2e777b0e73809047d98066ebcc28042882d1cf8.tar.bz2
llvm-e2e777b0e73809047d98066ebcc28042882d1cf8.tar.xz
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
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 9cbaaa19f8..3c3030731e 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.