From: Devang Patel Date: Tue, 27 Apr 2010 21:49:04 +0000 (+0000) Subject: Check operand type first. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dcde3db38eaf6f32f96e5f5373b8b29013d272b3;p=oota-llvm.git Check operand type first. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8cdb94c152a..be65b828092 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2083,7 +2083,8 @@ void DwarfDebug::collectVariableInfo() { continue; // Ignore Undef values. - if (!MInsn->getOperand(0).getReg()) + if (MInsn->getOperand(0).getType() == MachineOperand::MO_Register + && !MInsn->getOperand(0).getReg()) continue; DIVariable DV(