mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 18:58:15 +00:00
[LLD][COFF] Mark operator== const to avoid ambiguity in C++20. (#68119)
C++20 will automatically generate an operator== with reversed operand order, which is ambiguous with the written operator== when one argument is marked const and the other isn't.
This commit is contained in:
parent
2848125c6c
commit
8899b713ea
@ -72,7 +72,7 @@ struct Export {
|
||||
StringRef symbolName;
|
||||
StringRef exportName; // Name in DLL
|
||||
|
||||
bool operator==(const Export &e) {
|
||||
bool operator==(const Export &e) const {
|
||||
return (name == e.name && extName == e.extName &&
|
||||
aliasTarget == e.aliasTarget &&
|
||||
ordinal == e.ordinal && noname == e.noname &&
|
||||
|
Loading…
Reference in New Issue
Block a user