summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-04-27 02:10:05 +0000
committerDale Johannesen <dalej@apple.com>2010-04-27 02:10:05 +0000
commiteb61a7d6164b63360ba596d7fd62831358e4ca09 (patch)
tree667f93b443d0c7b08538db8bd594916a8229b665 /llvm/lib/CodeGen/SelectionDAG
parent1e67dd6b2f6acd5e49551579335bce5d9c501dc9 (diff)
downloadbcm5719-llvm-eb61a7d6164b63360ba596d7fd62831358e4ca09.tar.gz
bcm5719-llvm-eb61a7d6164b63360ba596d7fd62831358e4ca09.zip
Revert a small part of 102372; this fixes at least one
of the dbg testsuite regressions. I don't think this is really the right fix; this change exposed an existing problem upstream somewhere. llvm-svn: 102410
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index d663521abaf..9d239c1bd7c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3834,10 +3834,15 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
return 0;
DAG.AddDbgValue(SDV, N.getNode(), isParameter);
} else {
+ // Generating Undefs here seems to be actively harmful because it
+ // affects the line numbers.
+ return 0;
+#if 0
// This isn't useful, but it shows what we're missing.
SDV = DAG.getDbgValue(Variable, UndefValue::get(Address->getType()),
0, dl, SDNodeOrder);
DAG.AddDbgValue(SDV, 0, isParameter);
+#endif
}
return 0;
}
OpenPOWER on IntegriCloud