mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 17:55:18 +00:00
llvm-mc/AsmParser: Fix thinko in ClassInfo::operator<.
llvm-svn: 78533
This commit is contained in:
parent
0984b029f8
commit
4a1dbf6b74
@ -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…
x
Reference in New Issue
Block a user