[clang] [clang] Fix nondeterminism in MemberPointerType (PR #137910)
Maksim Ivanov via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 07:40:48 PDT 2025
================
@@ -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());
----------------
emaxx-google wrote:
Yes, but this suggestion seems not needed because this `getCanonicalDecl()` call is already made inside the `Profile()` method: https://github.com/llvm/llvm-project/blob/e8ae77947154e10dbc05cbb95ec9e10d3b0be13e/clang/lib/AST/Type.cpp#L5279
https://github.com/llvm/llvm-project/pull/137910
More information about the cfe-commits
mailing list