mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix warnings building on sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2852c4db67
commit
2bee057a56
@ -149,7 +149,7 @@ void X86TargetMachine::replaceMachineCodeForFunction (void *Old, void *New) {
|
||||
char *OldByte = (char *) Old;
|
||||
*OldByte++ = 0xE9; // Emit JMP opcode.
|
||||
int32_t *OldWord = (int32_t *) OldByte;
|
||||
int32_t NewAddr = (int32_t) New;
|
||||
int32_t OldAddr = (int32_t) OldWord;
|
||||
int32_t NewAddr = (intptr_t) New;
|
||||
int32_t OldAddr = (intptr_t) OldWord;
|
||||
*OldWord = NewAddr - OldAddr - 4; // Emit PC-relative addr of New code.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user