fix a warning on 32-bit systems

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-07-25 23:42:58 +00:00
parent 7b4f0a81ff
commit d6bbac500b

View File

@ -437,7 +437,7 @@ void JITEmitter::finishFunction(MachineFunction &F) {
MR.doesntNeedFunctionStub());
else //ConstantPoolIndex
ResultPtr =
(void*)getConstantPoolEntryAddress(MR.getConstantPoolIndex());
(void*)(intptr_t)getConstantPoolEntryAddress(MR.getConstantPoolIndex());
MR.setResultPointer(ResultPtr);