summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp4
1 files changed, 2 insertions, 2 deletions
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.
OpenPOWER on IntegriCloud