mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 03:08:43 +00:00
Correct the SrcValue information in the Expand code for va_copy.
llvm-svn: 49839
This commit is contained in:
parent
31b3639a2d
commit
c4bea57bb4
@ -3283,8 +3283,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
// output, returning the chain.
|
// output, returning the chain.
|
||||||
const Value *VD = cast<SrcValueSDNode>(Node->getOperand(3))->getValue();
|
const Value *VD = cast<SrcValueSDNode>(Node->getOperand(3))->getValue();
|
||||||
const Value *VS = cast<SrcValueSDNode>(Node->getOperand(4))->getValue();
|
const Value *VS = cast<SrcValueSDNode>(Node->getOperand(4))->getValue();
|
||||||
Tmp4 = DAG.getLoad(TLI.getPointerTy(), Tmp1, Tmp3, VD, 0);
|
Tmp4 = DAG.getLoad(TLI.getPointerTy(), Tmp1, Tmp3, VS, 0);
|
||||||
Result = DAG.getStore(Tmp4.getValue(1), Tmp4, Tmp2, VS, 0);
|
Result = DAG.getStore(Tmp4.getValue(1), Tmp4, Tmp2, VD, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user