diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-17 23:33:27 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-17 23:33:27 +0000 |
commit | a4defc00ebf30f136ea96084b6a10c57441de6e7 (patch) | |
tree | 40d2f7216ba4b4156386b0bd4d9b0f7b519df8b2 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 6ef6ceda6883d0ee543d8da86d16b0fcdcecab96 (diff) | |
download | external_llvm-a4defc00ebf30f136ea96084b6a10c57441de6e7.zip external_llvm-a4defc00ebf30f136ea96084b6a10c57441de6e7.tar.gz external_llvm-a4defc00ebf30f136ea96084b6a10c57441de6e7.tar.bz2 |
Do not lose debug info of an inlined function argument even if the argument is only used through GEPs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-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 def0c69..49c862c 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: |