Add another debug statement.

llvm-svn: 152843
This commit is contained in:
Eric Christopher 2012-03-15 21:33:41 +00:00
parent 6a0c679762
commit be7a1016fc
1 changed files with 3 additions and 1 deletions

View File

@ -4561,8 +4561,10 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
const DbgDeclareInst &DI = cast<DbgDeclareInst>(I);
MDNode *Variable = DI.getVariable();
const Value *Address = DI.getAddress();
if (!Address || !DIVariable(Variable).Verify())
if (!Address || !DIVariable(Variable).Verify()) {
DEBUG(dbgs() << "Dropping debug info for " << DI << "\n");
return 0;
}
// Build an entry in DbgOrdering. Debug info input nodes get an SDNodeOrder
// but do not always have a corresponding SDNode built. The SDNodeOrder