[clang] [Clang] Bypass TAD during overload resolution if a perfect match exists (PR #136018)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 16 13:26:50 PDT 2025
================
@@ -415,7 +415,7 @@ class Sema;
// If we are not performing a reference binding, we can skip comparing
// the types, which has a noticeable performance impact.
if (!ReferenceBinding) {
- assert(C.hasSameType(getFromType(), getToType(2)));
+ assert(First || C.hasSameUnqualifiedType(getFromType(), getToType(2)));
----------------
erichkeane wrote:
Not sure I get this? What is going on here?
https://github.com/llvm/llvm-project/pull/136018
More information about the cfe-commits
mailing list