mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
[PowerPC] PR20280 - Slots for byval parameters are not immutable
Found by inspection while looking at PR20280: code would mark slots in the parameter save area where a byval parameter is passed as "immutable". This is not correct since code is allowed to modify byval parameters in place in the parameter save area. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9aa0b5e11e
commit
a45d218f15
@ -2688,7 +2688,7 @@ PPCTargetLowering::LowerFormalArguments_64SVR4(
|
||||
int FI;
|
||||
if (HasParameterArea ||
|
||||
ArgSize + ArgOffset > LinkageSize + Num_GPR_Regs * PtrByteSize)
|
||||
FI = MFI->CreateFixedObject(ArgSize, ArgOffset, true);
|
||||
FI = MFI->CreateFixedObject(ArgSize, ArgOffset, false);
|
||||
else
|
||||
FI = MFI->CreateStackObject(ArgSize, Align, false);
|
||||
SDValue FIN = DAG.getFrameIndex(FI, PtrVT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user