fix a bug reid noticed

llvm-svn: 31385
This commit is contained in:
Chris Lattner 2006-11-02 23:39:53 +00:00
parent 15d166ba8f
commit 2de0910a1b
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void PPCMachOWriter::GetTargetRelocation(MachineRelocation &MR,
case PPC::reloc_pcrel_bx:
Addr -= MR.getMachineCodeOffset();
Addr >>= 2;
// ??? Addr & 0xFFFFFF; Possibly this was supposed to be Addr &= 0xFFFFFF ?
Addr &= 0xFFFFFF;
Addr <<= 2;
Addr |= (MOS.SectionData[MR.getMachineCodeOffset()] << 24);
fixword(MOS.SectionData, Addr, MR.getMachineCodeOffset());