mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Don't call isDef on non-registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04957ac67c
commit
67942f5dc3
@ -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?");
|
||||
|
Loading…
Reference in New Issue
Block a user