[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp
John Criswell
criswell at cs.uiuc.edu
Fri Dec 12 13:58:01 PST 2003
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.41 -> 1.42
---
Log message:
Modified cast so that it converts the int to a long before casting to
a pointer. This evades a warning emitted by GCC when we cast from
unsigned int (32 bit) to void * (64 bit) on SparcV9.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.41 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.42
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.41 Fri Dec 12 01:11:18 2003
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Fri Dec 12 13:57:48 2003
@@ -57,7 +57,7 @@
MachineCodeEmitter &MCE) {
if (TheJITResolver == 0)
TheJITResolver = new JITResolver(MCE);
- return (void*)TheJITResolver->getLazyResolver(F);
+ return (void*)((unsigned long)TheJITResolver->getLazyResolver(F));
}
/// addFunctionReference - This method is called when we need to emit the
More information about the llvm-commits
mailing list