[clang] 1e3dc8c - [Serialization] Fix a warning
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 23 05:49:55 PDT 2024
Author: Kazu Hirata
Date: 2024-08-23T05:49:49-07:00
New Revision: 1e3dc8cdb49bf7b8344d1d7f7befbb95a9fbdb63
URL: https://github.com/llvm/llvm-project/commit/1e3dc8cdb49bf7b8344d1d7f7befbb95a9fbdb63
DIFF: https://github.com/llvm/llvm-project/commit/1e3dc8cdb49bf7b8344d1d7f7befbb95a9fbdb63.diff
LOG: [Serialization] Fix a warning
This patch fixes:
clang/lib/Serialization/ASTReader.cpp:9978:27: error: lambda capture
'this' is not used [-Werror,-Wunused-lambda-capture]
Added:
Modified:
clang/lib/Serialization/ASTReader.cpp
Removed:
################################################################################
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index be83805f1e92b9..ffdaec4067e1c4 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -9975,7 +9975,7 @@ void ASTReader::finishPendingActions() {
return false;
};
- auto hasDefinition = [this, &hasDefinitionImpl](Decl *D) {
+ auto hasDefinition = [&hasDefinitionImpl](Decl *D) {
return hasDefinitionImpl(D, hasDefinitionImpl);
};
More information about the cfe-commits
mailing list