From 2f1b0b55b8769c959eee1712c49d1e4c2ca299af Mon Sep 17 00:00:00 2001 From: David Fang Date: Thu, 8 Aug 2013 21:29:30 +0000 Subject: [PATCH] cast fix to appease buildbot llvm-svn: 188014 --- llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp index c907b2ba6ed4..fc9b892fb079 100644 --- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp +++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp @@ -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; } -- 2.34.1