[clang] [Clang][RFC] Bypass TAD during overload resolution if a perfect match exists (PR #133426)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 14 23:07:36 PDT 2025


================
@@ -1117,16 +1205,27 @@ class Sema;
     SmallVector<OverloadCandidate, 16> Candidates;
     llvm::SmallPtrSet<uintptr_t, 16> Functions;
 
-    // Allocator for ConversionSequenceLists. We store the first few of these
+    DeferredTemplateOverloadCandidate *FirstDeferredCandidate;
+    unsigned DeferredCandidatesCount : 8 * sizeof(unsigned) - 2;
----------------
cor3ntin wrote:

The 32 on line 1227 is super arbitrary and not tied to the size of `unsigned`.
It did felt worth making bigger as we are now storing more than conversion sequences in the overload set. 

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


More information about the cfe-commits mailing list