[clang] [RFC] Initial implementation of P2719 (PR #113510)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 8 15:04:43 PDT 2025


================
@@ -1866,13 +1959,13 @@ static UsualDeallocFnInfo resolveDeallocationOverload(
         BestFns->push_back(Info);
       continue;
     }
-
-    if (Best.isBetterThan(Info, WantSize, WantAlign))
+    int ComparisonResult = Best.Compare(S, Info, IDP);
+    if (ComparisonResult > 0)
----------------
ojhunt wrote:

@cor3ntin where should it go? Sema.h seems like it runs the risk of copious namespace pollution?

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


More information about the cfe-commits mailing list