================
@@ -3610,7 +3611,7 @@ class MemberPointerType : public Type, public 
llvm::FoldingSetNode {
   }
 
   void Profile(llvm::FoldingSetNodeID &ID) {
-    Profile(ID, getPointeeType(), getQualifier(), 
getMostRecentCXXRecordDecl());
+    Profile(ID, getPointeeType(), getQualifier(), getCXXRecordDecl());
----------------
erichkeane wrote:

Hmm... then I'm surprised that this patch is needed at all for the purposes of 
non-determinism.  `getMostRecentCXXRecordDecl()->getCanonicalDecl()` will get 
the same declaration as `getCXXRecordDecl()->getCanonicalDecl()`.

https://github.com/llvm/llvm-project/pull/137910
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to