mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
Check operand type first.
llvm-svn: 102468
This commit is contained in:
parent
65a95091cf
commit
5d20a6c621
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user