llvm.org GIT mirror llvm / 9d0796a
Donot forget to resolve dangling debug info in a case where virtual register, used for a value, is initialized after a dbg intrinsic is seen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112207 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
911911 unsigned InReg = It->second;
912912 RegsForValue RFV(*DAG.getContext(), TLI, InReg, V->getType());
913913 SDValue Chain = DAG.getEntryNode();
914 return N = RFV.getCopyFromRegs(DAG, FuncInfo, getCurDebugLoc(), Chain,NULL);
914 N = RFV.getCopyFromRegs(DAG, FuncInfo, getCurDebugLoc(), Chain,NULL);
915 resolveDanglingDebugInfo(V, N);
916 return N;
915917 }
916918
917919 // Otherwise create a new SDValue and remember it.