Modified cast so that it converts the int to a long before casting to
authorJohn Criswell <criswell@uiuc.edu>
Fri, 12 Dec 2003 19:57:48 +0000 (19:57 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Fri, 12 Dec 2003 19:57:48 +0000 (19:57 +0000)
a pointer.  This evades a warning emitted by GCC when we cast from
unsigned int (32 bit) to void * (64 bit) on SparcV9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10435 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CodeEmitter.cpp

index d4a87070e633612274ee9affe2a1afa09892dc9b..0b8ac110149e7400cfdba261de949ac0fca249c6 100644 (file)
@@ -57,7 +57,7 @@ void *X86TargetMachine::getJITStubForFunction(Function *F,
                                               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