cast fix to appease buildbot
authorDavid Fang <fang@csl.cornell.edu>
Thu, 8 Aug 2013 21:29:30 +0000 (21:29 +0000)
committerDavid Fang <fang@csl.cornell.edu>
Thu, 8 Aug 2013 21:29:30 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp

index c907b2ba6ed40a7d33cba48dfcab58eac7f0ca97..fc9b892fb079fcaa0855710e80f25a341ed6b74d 100644 (file)
@@ -178,7 +178,7 @@ static uint32_t getFixupOffset(const MCAsmLayout &Layout,
   uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset();
   // On Mach-O, ppc_fixup_half16 relocations must refer to the
   // start of the instruction, not the second halfword, as ELF does
-  if (Fixup.getKind() == PPC::fixup_ppc_half16)
+  if (unsigned(Fixup.getKind()) == PPC::fixup_ppc_half16)
     FixupOffset &= ~uint32_t(3);
   return FixupOffset;
 }