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
This commit is contained in:
Devang Patel
2010-04-27 20:54:45 +00:00
parent b3716e3e28
commit 0f9d952542
2 changed files with 5 additions and 5 deletions

View File

@@ -2081,6 +2081,11 @@ void DwarfDebug::collectVariableInfo() {
// 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()));