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,
32553255 return ULE;
32563256}
32573257
3258- static void diagnoseUncapturableValueReferenceOrBinding(Sema &S,
3259- SourceLocation loc,
3260- ValueDecl *var);
3261-
32623258ExprResult 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
You can’t perform that action at this time.
0 commit comments