Commit c6efb11f authored by John Criswell's avatar John Criswell
Browse files

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.

llvm-svn: 10435
parent 604cd3c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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