diff options
| author | Dan Gohman <gohman@apple.com> | 2008-04-17 02:09:26 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-04-17 02:09:26 +0000 |
| commit | 9752a8f3b4ee2b0f4f030f0656d4d552fe0d1f2f (patch) | |
| tree | 70c287c2170125adce72f0c0594ea18596a47527 /llvm/lib | |
| parent | 376acf4aaabc825a0f82f7eaa667e7bb83c47f2f (diff) | |
| download | bcm5719-llvm-9752a8f3b4ee2b0f4f030f0656d4d552fe0d1f2f.tar.gz bcm5719-llvm-9752a8f3b4ee2b0f4f030f0656d4d552fe0d1f2f.zip | |
Correct the SrcValue information in the Expand code for va_copy.
llvm-svn: 49839
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 377c627b23e..18d1d1853e0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3283,8 +3283,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { // output, returning the chain. const Value *VD = cast<SrcValueSDNode>(Node->getOperand(3))->getValue(); const Value *VS = cast<SrcValueSDNode>(Node->getOperand(4))->getValue(); - Tmp4 = DAG.getLoad(TLI.getPointerTy(), Tmp1, Tmp3, VD, 0); - Result = DAG.getStore(Tmp4.getValue(1), Tmp4, Tmp2, VS, 0); + Tmp4 = DAG.getLoad(TLI.getPointerTy(), Tmp1, Tmp3, VS, 0); + Result = DAG.getStore(Tmp4.getValue(1), Tmp4, Tmp2, VD, 0); break; } break; |

