[clang] [Clang][Sema] Ensure explicitly defaulted functions respect FP pragmas from their declaration site (PR #207429)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 07:00:12 PDT 2026
================
@@ -9027,9 +9048,10 @@ bool Sema::CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *FD,
UnresolvedSet<32> Operators;
lookupOperatorsForDefaultedComparison(*this, S, Operators,
FD->getOverloadedOperator());
- FD->setDefaultedOrDeletedInfo(
- FunctionDecl::DefaultedOrDeletedFunctionInfo::Create(
- Context, Operators.pairs()));
+ auto *Info = FunctionDecl::DefaultedOrDeletedFunctionInfo::Create(
----------------
erichkeane wrote:
Why this change? Why can't we just use the `setDefaultedOrDeletedInfo` version with `FPFeatures` here?
https://github.com/llvm/llvm-project/pull/207429
More information about the cfe-commits
mailing list