Fix a warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman 2006-04-25 17:46:32 +00:00
parent b3f70d7d55
commit c34b22716b

View File

@ -699,7 +699,7 @@ uint64_t JITEmitter::getJumpTableEntryAddress(unsigned Index) {
for (unsigned i = 0; i < Index; ++i)
Offset += JT[i].MBBs.size() * EntrySize;
return (uint64_t)((char *)JumpTableBase + Offset);
return (intptr_t)((char *)JumpTableBase + Offset);
}
unsigned char* JITEmitter::allocateGlobal(unsigned size, unsigned alignment)