forked from OSchip/llvm-project
Fix a 32/64 bit incompatibility in the HiPE prologue generation.
llvm-svn: 175458
This commit is contained in:
parent
53bc37ca2a
commit
5c6e653b72
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue