[clang] ecff9b6 - [analyzer] Just use default capture after 7fd60ee6e0a87957a718297a4a42d9881fc561e3
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 24 10:06:17 PST 2022
Author: Fangrui Song
Date: 2022-02-24T10:06:11-08:00
New Revision: ecff9b65b54c7a4bd79ca2af157c81595678f0ee
URL: https://github.com/llvm/llvm-project/commit/ecff9b65b54c7a4bd79ca2af157c81595678f0ee
DIFF: https://github.com/llvm/llvm-project/commit/ecff9b65b54c7a4bd79ca2af157c81595678f0ee.diff
LOG: [analyzer] Just use default capture after 7fd60ee6e0a87957a718297a4a42d9881fc561e3
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
index d31e05076998a..5a9bebc411dc6 100644
--- a/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
@@ -787,13 +787,11 @@ void GenericTaintRule::process(const GenericTaintChecker &Checker,
auto &F = State->getStateManager().get_context<ArgIdxFactory>();
ImmutableSet<ArgIdxTy> Result = F.getEmptySet();
ForEachCallArg(
- [this, WouldEscape, &Call, &Result, &F](ArgIdxTy I, const Expr *E,
- SVal V) {
+ [&](ArgIdxTy I, const Expr *E, SVal V) {
if (PropDstArgs.contains(I)) {
LLVM_DEBUG(llvm::dbgs() << "PreCall<"; Call.dump(llvm::dbgs());
llvm::dbgs()
<< "> prepares tainting arg index: " << I << '\n';);
- (void)Call;
Result = F.add(Result, I);
}
More information about the cfe-commits
mailing list