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 | 499c1bd358917ad64ed3dcc32492dd38e1a47706 (patch) | |
tree | 87d9d0ee28cb289e3b07dec080c11b13844c63a8 /lib | |
parent | 5788bca1c217934b884712b1bfa9441fb4a3557d (diff) | |
download | external_llvm-499c1bd358917ad64ed3dcc32492dd38e1a47706.zip external_llvm-499c1bd358917ad64ed3dcc32492dd38e1a47706.tar.gz external_llvm-499c1bd358917ad64ed3dcc32492dd38e1a47706.tar.bz2 |
Correct the SrcValue information in the Expand code for va_copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 377c627..18d1d18 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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; |