[clang] [clang] Fix nondeterminism in MemberPointerType (PR #137910)

Maksim Ivanov via cfe-commits cfe-commits at lists.llvm.org
Mon May 5 05:09:58 PDT 2025


================
@@ -3602,6 +3602,10 @@ class MemberPointerType : public Type, public llvm::FoldingSetNode {
   }
 
   NestedNameSpecifier *getQualifier() const { return Qualifier; }
+  CXXRecordDecl *getCXXRecordDecl() const;
----------------
emaxx-google wrote:

Sure, done. @mizvekov I'll also create a follow-up PR to rename the method - we can discuss the most appropriate choice there.

https://github.com/llvm/llvm-project/pull/137910


More information about the cfe-commits mailing list