1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Fixed the comparison operator for the enhanced

disassembler's disassembler map.

llvm-svn: 127527
This commit is contained in:
Sean Callanan 2011-03-12 03:27:54 +00:00
parent 925b25d53d
commit 4f6e58ff09

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)));
}
};