Fix a 32/64 bit incompatibility in the HiPE prologue generation.

llvm-svn: 175458
This commit is contained in:
Benjamin Kramer 2013-02-18 21:45:01 +00:00
parent 53bc37ca2a
commit 5c6e653b72
1 changed files with 1 additions and 1 deletions

View File

@ -1682,7 +1682,7 @@ void X86FrameLowering::adjustForHiPEPrologue(MachineFunction &MF) const {
continue;
const uint64_t CalleeStkArity =
std::max<int64_t>(0, F->arg_size() - CCRegisteredArgs);
std::max<ssize_t>(0, F->arg_size() - CCRegisteredArgs);
MoreStackForCalls = std::max<int64_t>(
MoreStackForCalls, (HipeLeafWords - 1 - CalleeStkArity) * SlotSize);
}