[clang] [Clang] Refactor uses of `Cand->Function` in SemaOverload.cpp (PR #98965)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 17 19:36:44 PDT 2024
================
@@ -11846,19 +11854,21 @@ static void DiagnoseFailedEnableIfAttr(Sema &S, OverloadCandidate *Cand) {
}
static void DiagnoseFailedExplicitSpec(Sema &S, OverloadCandidate *Cand) {
- ExplicitSpecifier ES = ExplicitSpecifier::getFromDecl(Cand->Function);
+ assert(Cand->Function && "Candidate must be a function");
+ Function *CandFunc = Cand->Function;
----------------
shafik wrote:
We use `Fn` elsewhere, we should be consistent throughout the file.
https://github.com/llvm/llvm-project/pull/98965
More information about the cfe-commits
mailing list