mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
cast fix to appease buildbot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b19dfc2e0
commit
d76adee1b2
@ -178,7 +178,7 @@ static uint32_t getFixupOffset(const MCAsmLayout &Layout,
|
|||||||
uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset();
|
uint32_t FixupOffset = Layout.getFragmentOffset(Fragment) + Fixup.getOffset();
|
||||||
// On Mach-O, ppc_fixup_half16 relocations must refer to the
|
// On Mach-O, ppc_fixup_half16 relocations must refer to the
|
||||||
// start of the instruction, not the second halfword, as ELF does
|
// 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);
|
FixupOffset &= ~uint32_t(3);
|
||||||
return FixupOffset;
|
return FixupOffset;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user