projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab19fa7
)
Fix compilation problem; make the cast and the LHS be the same type.
author
John Criswell
<criswell@uiuc.edu>
Fri, 5 Nov 2004 16:17:06 +0000
(16:17 +0000)
committer
John Criswell
<criswell@uiuc.edu>
Fri, 5 Nov 2004 16:17:06 +0000
(16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17488
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86CodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86CodeEmitter.cpp
b/lib/Target/X86/X86CodeEmitter.cpp
index 98cd863f430c9f8434177a869e6af09933c154cc..27327c18dbc27af50e282d312f8edbe25bb4e0d0 100644
(file)
--- 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;