forked from OSchip/llvm-project
Do not drop undef debug values. These are used as range termination marker by live debug variable pass.
llvm-svn: 136834
This commit is contained in:
parent
3c7e9ee480
commit
aab841cf63
|
|
@ -4515,7 +4515,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
// debug info exists.
|
||||
++SDNodeOrder;
|
||||
SDDbgValue *SDV;
|
||||
if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) {
|
||||
if (isa<ConstantInt>(V) || isa<ConstantFP>(V) || isa<UndefValue>(V)) {
|
||||
SDV = DAG.getDbgValue(Variable, V, Offset, dl, SDNodeOrder);
|
||||
DAG.AddDbgValue(SDV, 0, false);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue