Fixed the comparison operator for the enhanced

disassembler's disassembler map.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Callanan 2011-03-12 03:27:54 +00:00
parent 55768d763d
commit 7a387e4d9d

View File

@ -87,13 +87,8 @@ struct EDDisassembler {
/// operator< - Less-than operator
bool operator<(const CPUKey &key) const {
if(Arch > key.Arch)
return false;
else if (Arch == key.Arch) {
if(Syntax > key.Syntax)
return false;
}
return true;
return ((Arch < key.Arch) ||
((Arch == key.Arch) && Syntax < (key.Syntax)));
}
};