mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-31 11:32:42 +00:00
Fix /test/CodeGen/PowerPC/big-endian-actual-args.ll for linux/ppc32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49652 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c4be9c23b
commit
9701c8a18f
@ -4162,13 +4162,13 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
||||
unsigned NumRegs = getNumRegisters(VT);
|
||||
for (unsigned i = 0; i != NumRegs; ++i) {
|
||||
RetVals.push_back(RegisterVT);
|
||||
|
||||
ISD::ArgFlagsTy MyFlags = Flags;
|
||||
if (NumRegs > 1 && i == 0)
|
||||
Flags.setDivided();
|
||||
MyFlags.setDivided();
|
||||
// if it isn't first piece, alignment must be 1
|
||||
else if (i > 0)
|
||||
Flags.setOrigAlign(1);
|
||||
Ops.push_back(DAG.getArgFlags(Flags));
|
||||
MyFlags.setOrigAlign(1);
|
||||
Ops.push_back(DAG.getArgFlags(MyFlags));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user