Skip to content

Commit c6efb11

Browse files
author
John Criswell
committed
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
1 parent 604cd3c commit c6efb11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86CodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void *X86TargetMachine::getJITStubForFunction(Function *F,
5757
MachineCodeEmitter &MCE) {
5858
if (TheJITResolver == 0)
5959
TheJITResolver = new JITResolver(MCE);
60-
return (void*)TheJITResolver->getLazyResolver(F);
60+
return (void*)((unsigned long)TheJITResolver->getLazyResolver(F));
6161
}
6262

6363
/// addFunctionReference - This method is called when we need to emit the

0 commit comments

Comments
 (0)