[llvm] 5935952 - [SanitizerCoverage] Use [&] for lambdas (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 16 21:45:55 PST 2020
Author: Kazu Hirata
Date: 2020-11-16T21:45:21-08:00
New Revision: 5935952c3108c99bd865411845c4b02a6234a1d5
URL: https://github.com/llvm/llvm-project/commit/5935952c3108c99bd865411845c4b02a6234a1d5
DIFF: https://github.com/llvm/llvm-project/commit/5935952c3108c99bd865411845c4b02a6234a1d5.diff
LOG: [SanitizerCoverage] Use [&] for lambdas (NFC)
Added:
Modified:
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
index f4f94edd3ce2..9796e4cd652e 100644
--- a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+++ b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
@@ -522,7 +522,7 @@ static bool isFullDominator(const BasicBlock *BB, const DominatorTree *DT) {
if (succ_empty(BB))
return false;
- return llvm::all_of(successors(BB), [BB, DT](const BasicBlock *SUCC) {
+ return llvm::all_of(successors(BB), [&](const BasicBlock *SUCC) {
return DT->dominates(BB, SUCC);
});
}
@@ -533,7 +533,7 @@ static bool isFullPostDominator(const BasicBlock *BB,
if (pred_empty(BB))
return false;
- return llvm::all_of(predecessors(BB), [BB, PDT](const BasicBlock *PRED) {
+ return llvm::all_of(predecessors(BB), [&](const BasicBlock *PRED) {
return PDT->dominates(BB, PRED);
});
}
More information about the llvm-commits
mailing list