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:
Chris Lattner 2006-05-16 17:08:35 +00:00
parent 0582887de4
commit e7746c9084

View File

@ -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>