[clang] [clang][NFC] Don't track OpaqueValueExpr in bad conversion sequence (PR #238243)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 01:26:31 PST 2026


================
@@ -6210,12 +6208,9 @@ static ImplicitConversionSequence TryObjectArgumentInitialization(
       ExplicitParameterType = Method->getFunctionObjectParameterReferenceType();
     OpaqueValueExpr TmpExpr(Loc, FromType.getNonReferenceType(),
                             ValueKindFromClassification(FromClassification));
-    ImplicitConversionSequence ICS = TryCopyInitialization(
-        S, &TmpExpr, ExplicitParameterType, SuppressUserConversion,
-        /*InOverloadResolution=*/true, false);
-    if (ICS.isBad())
----------------
zyn0217 wrote:

(I searched the codebase and this seems to be the only one)

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


More information about the cfe-commits mailing list