mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
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
This commit is contained in:
parent
3a00ffacdc
commit
8f31428119
@ -929,7 +929,9 @@ SDValue SelectionDAGBuilder::getValue(const Value *V) {
|
|||||||
unsigned InReg = It->second;
|
unsigned InReg = It->second;
|
||||||
RegsForValue RFV(*DAG.getContext(), TLI, InReg, V->getType());
|
RegsForValue RFV(*DAG.getContext(), TLI, InReg, V->getType());
|
||||||
SDValue Chain = DAG.getEntryNode();
|
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.
|
// Otherwise create a new SDValue and remember it.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
; RUN: llc < %s | FileCheck %s
|
; RUN: llc < %s | FileCheck %s
|
||||||
; XFAIL: *
|
|
||||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
||||||
target triple = "x86_64-apple-darwin10.0.0"
|
target triple = "x86_64-apple-darwin10.0.0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user