mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Fix /test/CodeGen/PowerPC/big-endian-actual-args.ll for linux/ppc32
llvm-svn: 49652
This commit is contained in:
parent
d98e026e57
commit
5d04329f4b
@ -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