forked from OSchip/llvm-project
Rewrite computation of Value in adjustFixupValue so that the upper 48-bits are
cleared. No functionality change. llvm-svn: 153491
This commit is contained in:
parent
1453e310fd
commit
da72819725
|
@ -55,7 +55,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
|
|||
case Mips::fixup_Mips_HI16:
|
||||
case Mips::fixup_Mips_GOT_Local:
|
||||
// Get the higher 16-bits. Also add 1 if bit 15 is 1.
|
||||
Value = (Value >> 16) + ((Value & 0x8000) != 0);
|
||||
Value = ((Value + 0x8000) >> 16) & 0xffff;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue