mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Arguments are counting from 1. not from 0. Maybe we should change
numbering somehow? E.g. make return argument the last? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac2b2cf88c
commit
6aa279dc8b
@ -2874,7 +2874,7 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
||||
|
||||
// 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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user