fix a warning on 32-bit systems
authorChris Lattner <sabre@nondot.org>
Mon, 25 Jul 2005 23:42:58 +0000 (23:42 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 25 Jul 2005 23:42:58 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22513 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 70479fcaa826bda3207299004fd6ec49b480bdba..36444cb04d7a63751f44b5eaf63185624350cf4c 100644 (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);