[llvm] a400a61 - [LVI] Remove unnecessary lambda capture (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 12:33:39 PDT 2020
Author: Nikita Popov
Date: 2020-08-29T21:33:19+02:00
New Revision: a400a617217db7da1957cf1e102062aff98716e8
URL: https://github.com/llvm/llvm-project/commit/a400a617217db7da1957cf1e102062aff98716e8
DIFF: https://github.com/llvm/llvm-project/commit/a400a617217db7da1957cf1e102062aff98716e8.diff
LOG: [LVI] Remove unnecessary lambda capture (NFC)
Added:
Modified:
llvm/lib/Analysis/LazyValueInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 8a0507ffc268..d597d456fbb7 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -656,7 +656,7 @@ bool LazyValueInfoImpl::isNonNullAtEndOfBlock(Value *Val, BasicBlock *BB) {
return false;
Val = getUnderlyingObject(Val);
- return TheCache.isNonNullAtEndOfBlock(Val, BB, [this](BasicBlock *BB) {
+ return TheCache.isNonNullAtEndOfBlock(Val, BB, [](BasicBlock *BB) {
NonNullPointerSet NonNullPointers;
for (Instruction &I : *BB)
AddNonNullPointersByInstruction(&I, NonNullPointers);
More information about the llvm-commits
mailing list