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:
04957ac
)
Don't call isDef on non-registers
author
Chris Lattner
<sabre@nondot.org>
Tue, 5 Sep 2006 20:02:51 +0000
(20:02 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 5 Sep 2006 20:02:51 +0000
(20:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30117
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter.cpp
index 266f82a0916409897f2d3230f41bbaa3c6fc2446..9414e69b4ce58e266efbde2f74d5ee0685f62298 100644
(file)
--- a/
lib/CodeGen/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter.cpp
@@
-647,7
+647,8
@@
void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
// Count the number of register definitions.
unsigned NumDefs = 0;
- for (; MI->getOperand(NumDefs).isDef(); ++NumDefs)
+ for (; MI->getOperand(NumDefs).isReg() && MI->getOperand(NumDefs).isDef();
+ ++NumDefs)
assert(NumDefs != NumOperands-1 && "No asm string?");
assert(MI->getOperand(NumDefs).isExternalSymbol() && "No asm string?");