aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86CodeEmitter.cpp
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-11-05 16:17:06 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-11-05 16:17:06 +0000
commite5cda8e72732a03c453c45113b3d97b6b55cb7a3 (patch)
tree68eebf5c0c9d91c13c6883bcfac99cda0afd797c /lib/Target/X86/X86CodeEmitter.cpp
parentab19fa7967217f9dc988f5d607a500b318e85eb5 (diff)
downloadexternal_llvm-e5cda8e72732a03c453c45113b3d97b6b55cb7a3.tar.gz
external_llvm-e5cda8e72732a03c453c45113b3d97b6b55cb7a3.tar.bz2
external_llvm-e5cda8e72732a03c453c45113b3d97b6b55cb7a3.zip
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
Diffstat (limited to 'lib/Target/X86/X86CodeEmitter.cpp')
-rw-r--r--lib/Target/X86/X86CodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp
index 98cd863f43..27327c18db 100644
--- a/lib/Target/X86/X86CodeEmitter.cpp
+++ b/lib/Target/X86/X86CodeEmitter.cpp
@@ -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;