File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -3255,10 +3255,6 @@ ExprResult Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
3255
3255
return ULE;
3256
3256
}
3257
3257
3258
- static void diagnoseUncapturableValueReferenceOrBinding(Sema &S,
3259
- SourceLocation loc,
3260
- ValueDecl *var);
3261
-
3262
3258
ExprResult Sema::BuildDeclarationNameExpr(
3263
3259
const CXXScopeSpec &SS, const DeclarationNameInfo &NameInfo, NamedDecl *D,
3264
3260
NamedDecl *FoundD, const TemplateArgumentListInfo *TemplateArgs,
@@ -18659,8 +18655,9 @@ void Sema::MarkCaptureUsedInEnclosingContext(ValueDecl *Capture,
18659
18655
MarkVarDeclODRUsed(Capture, Loc, *this, &CapturingScopeIndex);
18660
18656
}
18661
18657
18662
- void diagnoseUncapturableValueReferenceOrBinding(Sema &S, SourceLocation loc,
18663
- ValueDecl *var) {
18658
+ static void diagnoseUncapturableValueReferenceOrBinding(Sema &S,
18659
+ SourceLocation loc,
18660
+ ValueDecl *var) {
18664
18661
DeclContext *VarDC = var->getDeclContext();
18665
18662
18666
18663
// If the parameter still belongs to the translation unit, then
You can’t perform that action at this time.
0 commit comments