mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
llvm-mc/AsmParser: Fix thinko in ClassInfo::operator<.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78533 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72fa87f0cf
commit
db2ddb5dc5
@ -396,10 +396,15 @@ struct InstructionInfo {
|
||||
if (Operands.size() != RHS.Operands.size())
|
||||
return Operands.size() < RHS.Operands.size();
|
||||
|
||||
for (unsigned i = 0, e = Operands.size(); i != e; ++i)
|
||||
// Compare lexicographically by operand. The matcher validates that other
|
||||
// orderings wouldn't be ambiguous using \see CouldMatchAmiguouslyWith().
|
||||
for (unsigned i = 0, e = Operands.size(); i != e; ++i) {
|
||||
if (*Operands[i].Class < *RHS.Operands[i].Class)
|
||||
return true;
|
||||
|
||||
if (*RHS.Operands[i].Class < *Operands[i].Class)
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user