projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c45acf
)
Check operand type first.
author
Devang Patel
<dpatel@apple.com>
Tue, 27 Apr 2010 21:49:04 +0000
(21:49 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 27 Apr 2010 21:49:04 +0000
(21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102468
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 8cdb94c152a26a1dfd8bb49284e618af4f509a69..be65b82809219ef015147f862f06af86a53e5f23 100644
(file)
--- 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(