[llvm-commits] [llvm] r129149 - /llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Jim Grosbach
grosbach at apple.com
Fri Apr 8 14:11:21 PDT 2011
Author: grosbach
Date: Fri Apr 8 16:11:20 2011
New Revision: 129149
URL: http://llvm.org/viewvc/llvm-project?rev=129149&view=rev
Log:
Workaround g++ 4.2.1 warning diagnostic false positive.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=129149&r1=129148&r2=129149&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Fri Apr 8 16:11:20 2011
@@ -296,7 +296,7 @@
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 @@
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.
More information about the llvm-commits
mailing list