forked from OSchip/llvm-project
Fixed the comparison operator for the enhanced
disassembler's disassembler map. llvm-svn: 127527
This commit is contained in:
parent
f89710b936
commit
47f660aeaf
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue