diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-27 20:54:45 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-27 20:54:45 +0000 |
commit | 0f9d95254291418a548d1341db540b5d5c11e8f4 (patch) | |
tree | 7d5732be249652b90ddccce11824d1d60a23de91 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | b3716e3e28fea28196188734c9868f3b14df0ad2 (diff) |
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/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f7b4c09162..8cdb94c152 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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())); |