Fix a bug that resistor on IRC hit where we tried to create token factor

nodes of load results, not of their chain results.

llvm-svn: 24398
This commit is contained in:
Chris Lattner 2005-11-17 18:30:17 +00:00
parent 5aba6ae3b3
commit 8f8ed28a64
1 changed files with 2 additions and 2 deletions

View File

@ -670,7 +670,7 @@ PPCTargetLowering::LowerCallTo(SDOperand Chain,
if (GPR_remaining > 0) {
SDOperand Load = DAG.getLoad(MVT::i32, Store, PtrOff,
DAG.getSrcValue(NULL));
MemOps.push_back(Load);
MemOps.push_back(Load.getValue(1));
args_to_use.push_back(Load);
--GPR_remaining;
}
@ -679,7 +679,7 @@ PPCTargetLowering::LowerCallTo(SDOperand Chain,
PtrOff = DAG.getNode(ISD::ADD, MVT::i32, PtrOff, ConstFour);
SDOperand Load = DAG.getLoad(MVT::i32, Store, PtrOff,
DAG.getSrcValue(NULL));
MemOps.push_back(Load);
MemOps.push_back(Load.getValue(1));
args_to_use.push_back(Load);
--GPR_remaining;
}