diff options
author | John Criswell <criswell@uiuc.edu> | 2003-12-12 19:57:48 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-12-12 19:57:48 +0000 |
commit | c6efb11f02cfe6d1b583c5d20d20976741299bee (patch) | |
tree | 45550ebbd7ea5501831c46013312ed1b67673f44 | |
parent | Fixed some minor typos. (diff) | |
download | llvm-project-c6efb11f02cfe6d1b583c5d20d20976741299bee.tar.gz llvm-project-c6efb11f02cfe6d1b583c5d20d20976741299bee.tar.bz2 llvm-project-c6efb11f02cfe6d1b583c5d20d20976741299bee.zip |
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
-rw-r--r-- | llvm/lib/Target/X86/X86CodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86CodeEmitter.cpp b/llvm/lib/Target/X86/X86CodeEmitter.cpp index d4a87070e633..0b8ac110149e 100644 --- a/llvm/lib/Target/X86/X86CodeEmitter.cpp +++ b/llvm/lib/Target/X86/X86CodeEmitter.cpp @@ -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 |