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 | 1a0bbe25e32ef03119c743eb1da50d280640041f (patch) | |
tree | be271d2cb6c9a2929a035efc5b0e45a6fc194cd2 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 199db36b79e6dca6c2420989b91ba1b1e90e0461 (diff) | |
download | bcm5719-llvm-1a0bbe25e32ef03119c743eb1da50d280640041f.tar.gz bcm5719-llvm-1a0bbe25e32ef03119c743eb1da50d280640041f.zip |
Ignore DBG_VALUE instructions that points to undef values.
llvm-svn: 102463
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f7b4c09162a..8cdb94c152a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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())); |