mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Fix a bug I introduced yesterday, which broke functions with *no* arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0582887de4
commit
e7746c9084
@ -542,6 +542,9 @@ void X86TargetLowering::LowerCCCArguments(SDOperand Op, SelectionDAG &DAG) {
|
||||
}
|
||||
FormalArgs.push_back(ArgValue);
|
||||
}
|
||||
// Provide a chain. Note that this isn't the right one, but it works as well
|
||||
// as before.
|
||||
FormalArgs.push_back(DAG.getEntryNode());
|
||||
}
|
||||
|
||||
std::pair<SDOperand, SDOperand>
|
||||
@ -1081,6 +1084,10 @@ X86TargetLowering::LowerFastCCArguments(SDOperand Op, SelectionDAG &DAG) {
|
||||
}
|
||||
FormalArgs.push_back(ArgValue);
|
||||
}
|
||||
|
||||
// Provide a chain. Note that this isn't the right one, but it works as well
|
||||
// as before.
|
||||
FormalArgs.push_back(DAG.getEntryNode());
|
||||
}
|
||||
|
||||
std::pair<SDOperand, SDOperand>
|
||||
|
Loading…
x
Reference in New Issue
Block a user