diff options
Diffstat (limited to 'include/clang/Basic/IdentifierTable.h')
-rw-r--r-- | include/clang/Basic/IdentifierTable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h index f64fd6fda4..7c9efc8bc4 100644 --- a/include/clang/Basic/IdentifierTable.h +++ b/include/clang/Basic/IdentifierTable.h @@ -231,10 +231,10 @@ public: return InfoPtr & ArgFlags; } /// operator==/!= - Indicate whether the specified selectors are identical. - bool operator==(const Selector &RHS) const { + bool operator==(Selector RHS) const { return InfoPtr == RHS.InfoPtr; } - bool operator!=(const Selector &RHS) const { + bool operator!=(Selector RHS) const { return InfoPtr != RHS.InfoPtr; } void *getAsOpaquePtr() const { |