aboutsummaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-03-12 03:27:54 +0000
committerSean Callanan <scallanan@apple.com>2011-03-12 03:27:54 +0000
commit7a387e4d9de9ab8155836e65138621192ba8316a (patch)
tree4a5388c02ad9d13361bcfa0d2b53e2ebb8a1fe94 /lib/MC
parent55768d763d3d955c07d5819c3ef2e9d1ca6d2baf (diff)
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
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCDisassembler/EDDisassembler.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/MC/MCDisassembler/EDDisassembler.h b/lib/MC/MCDisassembler/EDDisassembler.h
index 71e45f0b04..2fcc09d4be 100644
--- a/lib/MC/MCDisassembler/EDDisassembler.h
+++ b/lib/MC/MCDisassembler/EDDisassembler.h
@@ -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)));
}
};