================
@@ -52,6 +52,12 @@ struct AccessPath {
   const clang::MaterializeTemporaryExpr *getAsMaterializeTemporaryExpr() const 
{
     return P.dyn_cast<const clang::MaterializeTemporaryExpr *>();
   }
+
+  bool operator==(const AccessPath &RHS) const {
+    return getAsValueDecl() == RHS.getAsValueDecl() &&
----------------
Xazax-hun wrote:

nit: I believe we have `operator==` for pointer unions.

https://github.com/llvm/llvm-project/pull/178670
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to