[clang] [Clang] Implement CWG2918 'Consideration of constraints for address of overloaded function' (PR #127773)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 06:24:54 PST 2025


================
@@ -1773,20 +1773,19 @@ bool Sema::IsAtLeastAsConstrained(NamedDecl *D1,
                                   NamedDecl *D2,
                                   MutableArrayRef<const Expr *> AC2,
                                   bool &Result) {
+#ifndef NDEBUG
   if (const auto *FD1 = dyn_cast<FunctionDecl>(D1)) {
     auto IsExpectedEntity = [](const FunctionDecl *FD) {
       FunctionDecl::TemplatedKind Kind = FD->getTemplatedKind();
----------------
erichkeane wrote:

Yeah, sorry, I thought I deleted this comment.  

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


More information about the cfe-commits mailing list