[clang] [Sema] Handle AttributedType in template deduction with derived-to-base conversions (PR #134361)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 4 12:07:04 PDT 2025
================
@@ -4446,7 +4446,7 @@ static bool AdjustFunctionParmAndArgTypesForDeduction(
// transformed A can be a pointer to a derived class pointed to by
// the deduced A.
if (isSimpleTemplateIdType(ParamType) ||
- (isa<PointerType>(ParamType) &&
+ (ParamType->getAs<PointerType>() &&
isSimpleTemplateIdType(
ParamType->castAs<PointerType>()->getPointeeType())))
----------------
mizvekov wrote:
This could avoid searching for the PointerType twice.
https://github.com/llvm/llvm-project/pull/134361
More information about the cfe-commits
mailing list