[llvm-commits] [llvm] r49652 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Mon Apr 14 10:17:14 PDT 2008
Author: geoffray
Date: Mon Apr 14 12:17:14 2008
New Revision: 49652
URL: http://llvm.org/viewvc/llvm-project?rev=49652&view=rev
Log:
Fix /test/CodeGen/PowerPC/big-endian-actual-args.ll for linux/ppc32
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=49652&r1=49651&r2=49652&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Apr 14 12:17:14 2008
@@ -4162,13 +4162,13 @@
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));
}
}
More information about the llvm-commits
mailing list