git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102463
91177308-0d34-0410-b5e6-
96231b3b80d8
// FIXME : Lift this restriction.
if (MInsn->getNumOperands() != 3)
continue;
+
+ // Ignore Undef values.
+ if (!MInsn->getOperand(0).getReg())
+ continue;
+
DIVariable DV(
const_cast<MDNode *>(MInsn->getOperand(MInsn->getNumOperands() - 1)
.getMetadata()));
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;
}