Fix calls to functions returning i64

llvm-svn: 24856
This commit is contained in:
Chris Lattner 2005-12-19 02:15:51 +00:00
parent 655fac2c95
commit 5b9c9f9d36
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ SparcV8TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
Chain = RetVal.getValue(1);
break;
case MVT::i64:
SDOperand Lo = DAG.getCopyFromReg(Chain, V8::O0, MVT::i32, InFlag);
SDOperand Lo = DAG.getCopyFromReg(Chain, V8::O1, MVT::i32, InFlag);
SDOperand Hi = DAG.getCopyFromReg(Lo.getValue(1), V8::O0, MVT::i32,
Lo.getValue(2));
RetVal = DAG.getNode(ISD::BUILD_PAIR, MVT::i64, Lo, Hi);