mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +00:00
Fix a 32/64 bit incompatibility in the HiPE prologue generation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98fbe27ac8
commit
6228999d82
@ -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…
x
Reference in New Issue
Block a user