diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-28 16:04:40 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-28 16:04:40 +0000 |
| commit | 9fa3839d2905107d85317dec25969663881e7ba5 (patch) | |
| tree | 12e7aadd1790ec9d83ec6ed60672f7a88c48671a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | eba26e463a91b553dafefd1c8f04cf6651203821 (diff) | |
| download | bcm5719-llvm-9fa3839d2905107d85317dec25969663881e7ba5.tar.gz bcm5719-llvm-9fa3839d2905107d85317dec25969663881e7ba5.zip | |
More cleanup
llvm-svn: 33605
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index c1d70006c13..47dc05af510 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2875,9 +2875,10 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) { // Add one result value for each formal argument. std::vector<MVT::ValueType> RetVals; unsigned j = 0; - for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); I != E; ++I) { + for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); + I != E; ++I, ++j) { MVT::ValueType VT = getValueType(I->getType()); - bool isInReg = FTy->paramHasAttr(++j, FunctionType::InRegAttribute); + bool isInReg = FTy->paramHasAttr(j, FunctionType::InRegAttribute); bool isSRet = FTy->paramHasAttr(j, FunctionType::StructRetAttribute); unsigned Flags = (isInReg << 1) | (isSRet << 2); |

