mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Create a fixed stack object for varargs that is as large as any register.
The size of this object isn't used for anything - technically it is of variable size. This avoids a false positive from the assert in X86InstrInfo::loadRegFromStackSlot, and fixes PR7735. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109652 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7cbf73a73f
commit
4c010ec851
@ -1701,7 +1701,10 @@ X86TargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
if (isVarArg) {
|
||||
if (Is64Bit || (CallConv != CallingConv::X86_FastCall &&
|
||||
CallConv != CallingConv::X86_ThisCall)) {
|
||||
FuncInfo->setVarArgsFrameIndex(MFI->CreateFixedObject(1, StackSize,true));
|
||||
// The fixed varargs object is created large enough that we can load and
|
||||
// store any register in it.
|
||||
FuncInfo->setVarArgsFrameIndex(MFI->CreateFixedObject(32, StackSize,
|
||||
true));
|
||||
}
|
||||
if (Is64Bit) {
|
||||
unsigned TotalNumIntRegs = 0, TotalNumXMMRegs = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user