[llvm] r188014 - cast fix to appease buildbot
David Fang
fang at csl.cornell.edu
Thu Aug 8 14:29:31 PDT 2013
Author: fangism
Date: Thu Aug 8 16:29:30 2013
New Revision: 188014
URL: http://llvm.org/viewvc/llvm-project?rev=188014&view=rev
Log:
cast fix to appease buildbot
Modified:
llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp?rev=188014&r1=188013&r2=188014&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp Thu Aug 8 16:29:30 2013
@@ -178,7 +178,7 @@ static uint32_t getFixupOffset(const MCA
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;
}
More information about the llvm-commits
mailing list