[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp

John Criswell criswell at cs.uiuc.edu
Fri Nov 5 08:17:21 PST 2004



Changes in directory llvm/lib/Target/X86:

X86CodeEmitter.cpp updated: 1.69 -> 1.70
---
Log message:

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


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.69 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.70
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.69	Thu Nov  4 22:50:59 2004
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp	Fri Nov  5 10:17:06 2004
@@ -65,7 +65,7 @@
 }
 
 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;






More information about the llvm-commits mailing list