[clang] 33e18cb - Revert "Revert "[Modules] Don't check [temp.friend]p9 in ASTContext::isSameEntity""
Mark de Wever via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 28 11:04:31 PST 2023
Author: Mark de Wever
Date: 2023-02-28T20:03:54+01:00
New Revision: 33e18cb6ce7a478d3c381c1c7ef2501787fed6f4
URL: https://github.com/llvm/llvm-project/commit/33e18cb6ce7a478d3c381c1c7ef2501787fed6f4
DIFF: https://github.com/llvm/llvm-project/commit/33e18cb6ce7a478d3c381c1c7ef2501787fed6f4.diff
LOG: Revert "Revert "[Modules] Don't check [temp.friend]p9 in ASTContext::isSameEntity""
This fixes the Clang modular CI, but breaks other CIs.
This reverts commit 2ae39902506f38d6368a7dbe3d64109f57ad6f99.
Added:
Modified:
clang/lib/AST/ASTContext.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index b692e6ee06521..00b339fbc2d41 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -6707,10 +6707,6 @@ bool ASTContext::isSameEntity(const NamedDecl *X, const NamedDecl *Y) const {
PrimaryY->getTrailingRequiresClause()))
return false;
- // Constrained friends are
diff erent in certain cases, see: [temp.friend]p9.
- if (FriendsDifferByConstraints(FuncX, FuncY))
- return false;
-
auto GetTypeAsWritten = [](const FunctionDecl *FD) {
// Map to the first declaration that we've already merged into this one.
// The TSI of redeclarations might not match (due to calling conventions
More information about the cfe-commits
mailing list