diff options
author | Devang Patel <dpatel@apple.com> | 2011-01-25 18:09:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-01-25 18:09:58 +0000 |
commit | 8f31428119b842875ed50996708164b56f3c6a4e (patch) | |
tree | 9da4ae75ec379a90c50eb9e54da075ef61e3691c /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 3a00ffacdc49cb71baca7a17de51ff55fca119b7 (diff) | |
download | external_llvm-8f31428119b842875ed50996708164b56f3c6a4e.zip external_llvm-8f31428119b842875ed50996708164b56f3c6a4e.tar.gz external_llvm-8f31428119b842875ed50996708164b56f3c6a4e.tar.bz2 |
Resolve DanglingDbgValue of PHI nodes where the use follows dbg.value intrinisic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index f3b509c..48a2dc5 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -929,7 +929,9 @@ SDValue SelectionDAGBuilder::getValue(const Value *V) { unsigned InReg = It->second; RegsForValue RFV(*DAG.getContext(), TLI, InReg, V->getType()); SDValue Chain = DAG.getEntryNode(); - return N = RFV.getCopyFromRegs(DAG, FuncInfo, getCurDebugLoc(), Chain,NULL); + N = RFV.getCopyFromRegs(DAG, FuncInfo, getCurDebugLoc(), Chain,NULL); + resolveDanglingDebugInfo(V, N); + return N; } // Otherwise create a new SDValue and remember it. |