[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:39:27 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:
```suggestion
FunctionDecl *CandFunc = Cand->Function;
```
Whoops missed this the first time around, looks like a typo, please fix.
https://github.com/llvm/llvm-project/pull/98965
More information about the cfe-commits
mailing list