[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sun Jan 28 10:02:05 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.348 -> 1.349
---
Log message:
Arguments are counting from 1. not from 0. Maybe we should change
numbering somehow? E.g. make return argument the last?
---
Diffs of the changes: (+1 -1)
SelectionDAGISel.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.348 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.349
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.348 Sun Jan 28 10:04:40 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Sun Jan 28 12:01:49 2007
@@ -2874,7 +2874,7 @@
// Add one result value for each formal argument.
std::vector<MVT::ValueType> RetVals;
- unsigned j = 0;
+ unsigned j = 1;
for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end();
I != E; ++I, ++j) {
MVT::ValueType VT = getValueType(I->getType());
More information about the llvm-commits
mailing list