Skip to content

Commit 609ee9f

Browse files
committed
[clang] Remove unused lambda capture (NFC)
llvm-project/clang/lib/Serialization/ASTWriter.cpp:5077:59: error: lambda capture 'SemaRef' is not used [-Werror,-Wunused-lambda-capture] auto AddEmittedDeclRefOrZero = [this, &SemaDeclRefs, &SemaRef](Decl *D) { ~~~^~~~~~~ 1 error generated.
1 parent 6e30d97 commit 609ee9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5074,7 +5074,7 @@ void ASTWriter::WriteSpecialDeclRecords(Sema &SemaRef) {
50745074
// Write the record containing declaration references of Sema.
50755075
RecordData SemaDeclRefs;
50765076
if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) {
5077-
auto AddEmittedDeclRefOrZero = [this, &SemaDeclRefs, &SemaRef](Decl *D) {
5077+
auto AddEmittedDeclRefOrZero = [this, &SemaDeclRefs](Decl *D) {
50785078
if (!D || !wasDeclEmitted(D))
50795079
SemaDeclRefs.push_back(0);
50805080
else

0 commit comments

Comments
 (0)