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
This commit is contained in:
Dale Johannesen 2010-04-27 02:10:05 +00:00
parent 8a16d236db
commit 244d2bdb24

View File

@ -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;
}