mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-04 02:40:42 +00:00
Fix comparator used for looking up previously instantiated EDDisassemblers.
Now, Syntax is only used as a tie-breaker if the Arch matches. Previously, a request for x86_64 disassembler followed by the i386 disassembler in a single process would return the cached x86_64 disassembler. Fixes <rdar://problem/8958982> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
697ffd61a4
commit
80fd30563c
@ -89,8 +89,10 @@ struct EDDisassembler {
|
||||
bool operator<(const CPUKey &key) const {
|
||||
if(Arch > key.Arch)
|
||||
return false;
|
||||
if(Syntax >= key.Syntax)
|
||||
return false;
|
||||
else if (Arch == key.Arch) {
|
||||
if(Syntax > key.Syntax)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user