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 | 52b62de10063a15dfbcfb8b61504df826c76e03c (patch) | |
tree | ebfa41a97b9e3b67945949408bcb2c861569cc2a /lib | |
parent | bb1bad58d4092f1daa289950041a1c31e48c44bd (diff) | |
download | external_llvm-52b62de10063a15dfbcfb8b61504df826c76e03c.zip external_llvm-52b62de10063a15dfbcfb8b61504df826c76e03c.tar.gz external_llvm-52b62de10063a15dfbcfb8b61504df826c76e03c.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86CodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index d4a8707..0b8ac11 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/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 |