Check operand type first.

llvm-svn: 102468
This commit is contained in:
Devang Patel 2010-04-27 21:49:04 +00:00
parent 65a95091cf
commit 5d20a6c621

View File

@ -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(