Fix compilation problem; make the cast and the LHS be the same type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John Criswell 2004-11-05 16:17:06 +00:00
parent ab19fa7967
commit e5cda8e727

View File

@ -65,7 +65,7 @@ void *X86JITInfo::getJITStubForFunction(Function *F, MachineCodeEmitter &MCE) {
}
void X86JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
unsigned char *OldByte = (char *) Old;
unsigned char *OldByte = (unsigned char *) Old;
*OldByte++ = 0xE9; // Emit JMP opcode.
int32_t *OldWord = (int32_t *) OldByte;
int32_t NewAddr = (intptr_t) New;