diff options
author | Devang Patel <dpatel@apple.com> | 2011-01-27 19:15:01 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-01-27 19:15:01 +0000 |
commit | 7e7fc1052afa9a7b5bcc94d50bc5f0403a6e7470 (patch) | |
tree | 3501e2364278dfd371f697c6e17c6d3e4b5a656e /lib | |
parent | bfae5f312c5a726687b4f2201681fb5519568e14 (diff) | |
download | external_llvm-7e7fc1052afa9a7b5bcc94d50bc5f0403a6e7470.zip external_llvm-7e7fc1052afa9a7b5bcc94d50bc5f0403a6e7470.tar.gz external_llvm-7e7fc1052afa9a7b5bcc94d50bc5f0403a6e7470.tar.bz2 |
Speculatively revert r124380.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f588dd0..9c35b40 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -87,9 +87,6 @@ class SelectionDAGLegalize { // If someone requests legalization of the new node, return itself. if (From != To) LegalizedNodes.insert(std::make_pair(To, To)); - - // Transfer SDDbgValues. - DAG.TransferDbgValues(From, To); } public: diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 17be6b1..d14cae3 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5474,6 +5474,7 @@ void SelectionDAG::TransferDbgValues(SDValue From, SDValue To) { SDNode *FromNode = From.getNode(); SDNode *ToNode = To.getNode(); SmallVector<SDDbgValue*,2> &DVs = GetDbgValues(FromNode); + DbgInfo->removeSDDbgValues(FromNode); for (SmallVector<SDDbgValue *, 2>::iterator I = DVs.begin(), E = DVs.end(); I != E; ++I) { if ((*I)->getKind() == SDDbgValue::SDNODE) { @@ -5481,7 +5482,6 @@ void SelectionDAG::TransferDbgValues(SDValue From, SDValue To) { (*I)->setSDNode(ToNode, To.getResNo()); } } - DbgInfo->removeSDDbgValues(FromNode); } //===----------------------------------------------------------------------===// |