Unbreak x86-64.

llvm-svn: 45725
This commit is contained in:
Evan Cheng 2008-01-07 23:08:23 +00:00
parent 35ff5b0ee6
commit 8242168ef4
1 changed files with 3 additions and 4 deletions

View File

@ -1478,10 +1478,9 @@ SDOperand X86TargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG) {
// Add argument registers to the end of the list so that they are known live // Add argument registers to the end of the list so that they are known live
// into the call. // into the call.
if (IsTailCall) for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i)
for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i) Ops.push_back(DAG.getRegister(RegsToPass[i].first,
Ops.push_back(DAG.getRegister(RegsToPass[i].first, RegsToPass[i].second.getValueType()));
RegsToPass[i].second.getValueType()));
if (InFlag.Val) if (InFlag.Val)
Ops.push_back(InFlag); Ops.push_back(InFlag);