forked from OSchip/llvm-project
parent
1be4a59a11
commit
1cec755494
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue