aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-27 20:54:45 +0000
committerDevang Patel <dpatel@apple.com>2010-04-27 20:54:45 +0000
commit7f78e21c44fcdfbe2f95fd3882f9b5a9b938b137 (patch)
tree7d5732be249652b90ddccce11824d1d60a23de91 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parentb1fd9989ac67bc804c8d46d9a5634ecae2f65431 (diff)
downloadexternal_llvm-7f78e21c44fcdfbe2f95fd3882f9b5a9b938b137.zip
external_llvm-7f78e21c44fcdfbe2f95fd3882f9b5a9b938b137.tar.gz
external_llvm-7f78e21c44fcdfbe2f95fd3882f9b5a9b938b137.tar.bz2
Ignore DBG_VALUE instructions that points to undef values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 9d239c1..d663521 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3834,15 +3834,10 @@ 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;
}