diff options
author | Devang Patel <dpatel@apple.com> | 2011-01-26 18:55:05 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-01-26 18:55:05 +0000 |
commit | d2c9793bdf3fe621eee9330f9977be256301b5bf (patch) | |
tree | efd66a0d28d48ec02d44cc28a164989a4c2d33ed /lib/CodeGen | |
parent | 6f121fdede373a84f20785d7d30077667528dcdc (diff) | |
download | external_llvm-d2c9793bdf3fe621eee9330f9977be256301b5bf.zip external_llvm-d2c9793bdf3fe621eee9330f9977be256301b5bf.tar.gz external_llvm-d2c9793bdf3fe621eee9330f9977be256301b5bf.tar.bz2 |
While legalizing SDValues do not drop SDDbgValues, trasfer them to new legal nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 88e354a..d06a8b4 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -87,6 +87,9 @@ 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: |