From 9fa3839d2905107d85317dec25969663881e7ba5 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sun, 28 Jan 2007 16:04:40 +0000 Subject: More cleanup llvm-svn: 33605 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp') 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 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); -- cgit v1.2.3