Skip to content

Commit 8ed9c61

Browse files
authored
[NFC] Remove unneeded forward declaration of diagnoseUncapturableValueReferenceOrBinding() (llvm#154591)
The only (remaining) use of this forward declaration was removed in commit 127bf44.
1 parent 691ccf2 commit 8ed9c61

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3255,10 +3255,6 @@ ExprResult Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
32553255
return ULE;
32563256
}
32573257

3258-
static void diagnoseUncapturableValueReferenceOrBinding(Sema &S,
3259-
SourceLocation loc,
3260-
ValueDecl *var);
3261-
32623258
ExprResult Sema::BuildDeclarationNameExpr(
32633259
const CXXScopeSpec &SS, const DeclarationNameInfo &NameInfo, NamedDecl *D,
32643260
NamedDecl *FoundD, const TemplateArgumentListInfo *TemplateArgs,
@@ -18659,8 +18655,9 @@ void Sema::MarkCaptureUsedInEnclosingContext(ValueDecl *Capture,
1865918655
MarkVarDeclODRUsed(Capture, Loc, *this, &CapturingScopeIndex);
1866018656
}
1866118657

18662-
void diagnoseUncapturableValueReferenceOrBinding(Sema &S, SourceLocation loc,
18663-
ValueDecl *var) {
18658+
static void diagnoseUncapturableValueReferenceOrBinding(Sema &S,
18659+
SourceLocation loc,
18660+
ValueDecl *var) {
1866418661
DeclContext *VarDC = var->getDeclContext();
1866518662

1866618663
// If the parameter still belongs to the translation unit, then

0 commit comments

Comments
 (0)