Modified cast so that it converts the int to a long before casting to
[oota-llvm.git] / lib / Target / X86 / X86CodeEmitter.cpp
index d4a8707..0b8ac11 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