[clang] [Clang] Correctly handle taking the address of an explicit object member function template (PR #147046)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 7 06:59:56 PDT 2025


================
@@ -7757,7 +7762,9 @@ void Sema::AddMethodCandidate(
   Candidate.Viable = true;
 
   unsigned FirstConvIdx = PO == OverloadCandidateParamOrder::Reversed ? 1 : 0;
-  if (ObjectType.isNull())
+  if (IgnoreExplicitObject)
+    ;
----------------
AaronBallman wrote:

How bad is it to turn this into `if (!IgnoreExplicitObjec)` and wrap the other `else if` cases? I'm not keen on an empty if statement body.

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


More information about the cfe-commits mailing list